-
- All Implemented Interfaces:
-
android.os.Parcelable
public class AmazonPayPaymentParams extends PaymentParams
Represents the payment parameters for Amazon Pay transactions. This class extends the base PaymentParams class to include additional configuration specific to Amazon Pay.
-
-
Field Summary
Fields Modifier and Type Field Description private final AmazonPayConfig
amazonPayConfig
public final static Parcelable.Creator<AmazonPayPaymentParams>
CREATOR
-
Constructor Summary
Constructors Constructor Description AmazonPayPaymentParams(String checkoutId, AmazonPayConfig config)
Constructs the payment parameters for an Amazon Pay transaction.
-
Method Summary
Modifier and Type Method Description AmazonPayConfig
getAmazonPayConfig()
Returns the Amazon Pay configuration. void
writeToParcel(Parcel dest, int flags)
Writes the payment parameters to a Parcel. Map<String, String>
getParamsForRequest()
Returns a map of parameters to be included in the request for the Amazon Pay payment. boolean
equals(Object o)
Checks if this object is equal to another object. int
hashCode()
Returns the hash code of this object. -
-
Constructor Detail
-
AmazonPayPaymentParams
AmazonPayPaymentParams(String checkoutId, AmazonPayConfig config)
Constructs the payment parameters for an Amazon Pay transaction.- Parameters:
checkoutId
- The checkout ID of the transaction.config
- The Amazon Pay configuration.
-
-
Method Detail
-
getAmazonPayConfig
AmazonPayConfig getAmazonPayConfig()
Returns the Amazon Pay configuration.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
Writes the payment parameters to a Parcel.
- Parameters:
dest
- The Parcel in which the payment parameters should be written.flags
- Additional flags about how the object should be written.
-
getParamsForRequest
@NonNull() Map<String, String> getParamsForRequest()
Returns a map of parameters to be included in the request for the Amazon Pay payment. This method overrides the base implementation to add custom parameters specific to Amazon Pay.
-
equals
boolean equals(Object o)
Checks if this object is equal to another object.
- Parameters:
o
- The object to compare with.
-
hashCode
int hashCode()
Returns the hash code of this object.
-
-
-
-