-
- All Implemented Interfaces:
-
android.os.Parcelable
public class GooglePayPaymentParams extends VirtualAccountPaymentParams
Represents the payment parameters for GOOGLEPAY payment brand.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
cardBrand
private final BillingAddress
billingAddress
private final Customer
customer
public final static Parcelable.Creator<GooglePayPaymentParams>
CREATOR
-
Constructor Summary
Constructors Constructor Description GooglePayPaymentParams(String checkoutId, String paymentToken, String cardBrand)
Creates an object representing the GOOGLEPAY payment parameters. GooglePayPaymentParams(String checkoutId, String paymentToken, String cardBrand, BillingAddress billingAddress, Customer customer)
Creates an object representing the GOOGLEPAY payment parameters.
-
Method Summary
Modifier and Type Method Description String
getCardBrand()
Returns the actual card brand. BillingAddress
getBillingAddress()
Customer
getCustomer()
Map<String, String>
getParamsForRequest()
Returns a map of all parameters needed for transaction. void
writeToParcel(Parcel dest, int flags)
boolean
equals(Object o)
int
hashCode()
-
-
Constructor Detail
-
GooglePayPaymentParams
GooglePayPaymentParams(String checkoutId, String paymentToken, String cardBrand)
Creates an object representing the GOOGLEPAY payment parameters.- Parameters:
checkoutId
- The checkout ID of the transaction.paymentToken
- The payment token received from Google Payment API.cardBrand
- The actual card brand, should be taken from com.google.android.gms.wallet.PaymentData.
-
GooglePayPaymentParams
GooglePayPaymentParams(String checkoutId, String paymentToken, String cardBrand, BillingAddress billingAddress, Customer customer)
Creates an object representing the GOOGLEPAY payment parameters.- Parameters:
checkoutId
- The checkout ID of the transaction.paymentToken
- The payment token received from Google Payment API.cardBrand
- The actual card brand, should be taken from com.google.android.gms.wallet.PaymentData.billingAddress
- The Billing Address details received from Google Payment API.customer
- Customer details like name, phone and email received from Google Payment API.
-
-
Method Detail
-
getCardBrand
@Nullable() String getCardBrand()
Returns the actual card brand.
-
getBillingAddress
@Nullable() BillingAddress getBillingAddress()
-
getCustomer
@Nullable() Customer getCustomer()
-
getParamsForRequest
@NonNull() Map<String, String> getParamsForRequest()
Returns a map of all parameters needed for transaction.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-