GooglePayClient
Used to create and tokenize Google Pay payment methods. For more information see the documentation
Constructors
Link copied to clipboard
Create a new instance of GooglePayClient from within an Activity using a BraintreeClient.
Create a new instance of GooglePayClient from within a Fragment using a BraintreeClient.
Create a new instance of GooglePayClient using a BraintreeClient.
Functions
Link copied to clipboard
Get Braintree specific tokenization parameters for a Google Pay.
Link copied to clipboard
open fun isReadyToPay(@NonNull activity: FragmentActivity, @NonNull callback: GooglePayIsReadyToPayCallback)
open fun isReadyToPay(@NonNull context: Context, @Nullable request: ReadyForGooglePayRequest, @NonNull callback: GooglePayIsReadyToPayCallback)
open fun isReadyToPay(@NonNull activity: FragmentActivity, @Nullable request: ReadyForGooglePayRequest, @NonNull callback: GooglePayIsReadyToPayCallback)
Before starting the Google Pay flow, use this method to check whether the Google Pay API is supported and set up on the device.
Link copied to clipboard
open fun onActivityResult(resultCode: Int, @Nullable data: Intent, @NonNull callback: GooglePayOnActivityResultCallback)
Deprecated.
Link copied to clipboard
open fun requestPayment(@NonNull activity: FragmentActivity, @NonNull request: GooglePayRequest, @NonNull callback: GooglePayRequestPaymentCallback)
Launch a Google Pay request.
Link copied to clipboard
Add a GooglePayListener to your client to receive results or errors from the Google Pay flow.
Link copied to clipboard
Call this method when you've received a successful PaymentData response from a direct Google Play Services integration to get a GooglePayCardNonce or PayPalAccountNonce.