GooglePay

object GooglePay

Lets the application retrieve a card nonce using a Google Pay token.

Functions

Link copied to clipboard
fun createIsReadyToPayRequest(): IsReadyToPayRequest

Creates an IsReadyToPayRequest instance with Square-supported card networks and payment methods configured.

Link copied to clipboard
fun createPaymentDataRequest(squareLocationId: String, transactionInfo: TransactionInfo): PaymentDataRequest

Creates a PaymentDataRequest instance configured for the Square payment gateway.

Link copied to clipboard
fun requestGooglePayNonce(payData: PaymentData): Call<GooglePayNonceResult>

Creates a Call that requests a card nonce from a Google Pay PaymentData result. Prefer this to the token-only variant because the complete PaymentData includes additional information such as postal code that can help the banks assess risk and reduce false declines.