-
public class GooglePay
Lets the application retrieve a card nonce using a Google Pay token.
-
-
Method Summary
Modifier and Type Method Description final Call<GooglePayNonceResult>
requestGooglePayNonce(String googlePayToken)
Creates a Call that requests a card nonce from a Google Pay token. final <ERROR CLASS>
createIsReadyToPayRequest()
Creates an IsReadyToPayRequest instance with Square-supported card networks and payment methods configured. final <ERROR CLASS>
)>createPaymentDataRequest(String squareLocationId, <ERROR CLASS> transactionInfo)
Creates a PaymentDataRequest instance configured for the Square payment gateway. -
-
Method Detail
-
requestGooglePayNonce
final Call<GooglePayNonceResult> requestGooglePayNonce(String googlePayToken)
Creates a Call that requests a card nonce from a Google Pay token.
Call Call.execute to get a GooglePayNonceResult synchronously, or Call.enqueue to get a GooglePayNonceResult asynchronously.
The result contains a GooglePayNonceResult.Success if the request was successful or a GooglePayNonceResult.Error if there was an error.
The call can be canceled at any time with Call.cancel.
- Parameters:
googlePayToken
- A Google Pay googlePayToken obtained via the Google Pay API.
-
createIsReadyToPayRequest
final <ERROR CLASS> createIsReadyToPayRequest()
Creates an IsReadyToPayRequest instance with Square-supported card networks and payment methods configured.
-
createPaymentDataRequest
final <ERROR CLASS> )>createPaymentDataRequest(String squareLocationId, <ERROR CLASS> transactionInfo)
Creates a PaymentDataRequest instance configured for the Square payment gateway.
- Parameters:
squareLocationId
- The unique ID of the location to which the transaction will be credited.transactionInfo
- The Google Pay TransactionInfo for the payment.
-
-
-
-