create Google Pay Payment Method
suspend fun createGooglePayPaymentMethod(request: PaymentMethodRequests.CreateGooglePayPaymentMethodRequest): Pair<FrameObjects.PaymentMethod?, NetworkingError?>
Creates a new payment method from a Google Pay wallet token.
Sends the request using the merchant's publishable key rather than the secret key.
Return
A pair of the created payment method and a networking error.
Parameters
request
The Google Pay wallet data and optional customer or account associations.
fun createGooglePayPaymentMethod(request: PaymentMethodRequests.CreateGooglePayPaymentMethodRequest, completionHandler: (FrameObjects.PaymentMethod?, NetworkingError?) -> Unit)
Creates a new payment method from a Google Pay wallet token and delivers the result to a callback.
Sends the request using the merchant's publishable key rather than the secret key.
Parameters
request
The Google Pay wallet data and optional customer or account associations.
completion Handler
Called with the created payment method on success, or a NetworkingError on failure.