Generate a pay-in-full payment token based on the provided payment source. The token can be used to pay for an order of the given amount and currency.
Authenticated customers can only create tokens for themselves and not for other customers.
All other clients may specify the customer they wish to be associated with the payment token using the
Customer-Id
header or by providing a customer specific payment source.
If authenticating with a merchant public key, you cannot use a customer specific payment source.
For marketplace clients, you will need to indicate the merchant to create the token against using
the Merchant-Id
header.
required | object (CreateApplePayToken1) Create a payment token based on an Apple Pay datagram. |
{- "CreateApplePayToken": {
- "amount": {
- "minorCurrencyUnits": 0,
- "currency": "AUD"
}, - "applePay": {
- "paymentMethod": {
- "displayName": "string",
- "network": "string",
- "type": "debit"
}, - "transactionIdentifier": "string",
- "paymentData": {
- "data": "string",
- "header": {
- "publicKeyHash": "string",
- "transactionId": "string",
- "applicationData": "string",
- "ephemeralPublicKey": "string",
- "wrappedKey": "string"
}, - "signature": "string",
- "version": "EC_v1"
}
}, - "surchargeRequirement": {
- "surchargeQuote": {
- "unsurchargedAmount": 0,
- "surchargeAmount": 0,
- "totalAmount": 0,
- "paymentMethod": {
- "cardAttributes": {
- "currency": "AFN",
- "country": "AF",
- "funding": "credit",
- "prepaid": true,
- "brand": "",
- "issuer": "string",
- "productType": "CP",
- "schemeProduct": "AC000",
- "bin": "string"
}
}, - "summary": "string",
- "quoteVerificationToken": "string"
}
}
}
}
{- "BankAccountToken": {
- "paymentTokenId": "ptkn_Z2OS0pJDfRbNb_Sz",
- "amount": {
- "minorCurrencyUnits": 0,
- "currency": "AUD"
}, - "surchargeAmount": 0,
- "emailAddress": "string",
- "agreementAccepted": true,
- "bankAccount": {
- "accountName": "string",
- "bankName": "string",
- "identifier": {
- "AuBankAccountIdentifier": {
- "bsb": "string",
- "accountNumber": "string"
}
}, - "currency": "AUD"
}
}
}