Create Apple Pay token

Exchanges an Apple Pay payment token for a single-use token you can charge.

When a customer authorises an Apple Pay payment, Apple returns an encrypted paymentData payload. Send that payload here as token_data; Mamo returns a single-use token.

To complete the payment, call Initiate payment (POST /payments) with the payment link's ID as payment_link_id and the returned token as apple_pay_token.

📘

Enable wallets on the link

Wallets are on by default: a payment link created without payment_methods, in a wallet-supported currency, accepts card and wallet. A link created with payment_methods: ["card"] doesn't offer wallets.

Recipes
📱
Add Apple Pay and Google Pay
Open Recipe
Body Params
token_data
object
required

The raw Apple Pay paymentData object returned by the Apple Pay sheet.

Headers
string

A unique key, such as a UUID, that makes it safe to retry this request. Reuse the same key when you retry. See Idempotency.

Responses

429

Too many requests. You sent more than 100 requests in 30 seconds from one IP address. This response has no JSON body. See Rate limits.

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