Create Google Pay Token

Exchanges a Google Pay payment token for a card token you can charge.


When a customer authorises a Google Pay payment, Google returns a tokenizationData.token payload. Send that payload here as token_data; Mamo returns a single-use token you then use to create the charge.


To complete the payment, call POST /payments with the payment link identified by payment_link_id and the returned token passed as google_pay_token (see Create Payment).


Gateway configuration (for building the Google Pay request on your side): gateway checkoutltd, with gatewayMerchantId set to your Mamo Checkout public key. The Google-assigned merchantId is 12345678901234567890 in sandbox; for production, use the Google Pay merchant ID assigned to your account (contact [email protected]).


Wallet buttons are only offered when the payment link's payment_methods array includes "wallet".

Body Params
token_data
object
required

The parsed Google Pay tokenizationData.token object.

Headers
string
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json