Pay for an order using a payment token. Make sure you read the Error Handling page as you will need to add some logic to handle a 3DS challenge for card based payments.
3DS may be required for several reasons including
required | object (Confirm3DSComplete1) When 3DS is required, a card based |
{- "Confirm3DSComplete": {
- "paymentTokenId": "ptkn_Zz6SO_8bIUK88STB",
- "threeDSResponse": {
- "threeDSAuthorisationId": "string"
}, - "authoriseOnly": true
}
}
{- "PayOrderComplete": {
- "transactionId": "tran_Zz6SN_8bIUK88SSp",
- "transactionStatus": "accepted",
- "transactionDetails": {
- "purchaseDetails": {
- "orderId": "ordr_Zz6SN_8bIUK88SSq",
- "merchantId": "mcht_Zz6SN_8bIUK88SSm",
- "referenceOrderId": "ORD-12411",
- "amount": {
- "minorCurrencyUnits": 0,
- "currency": "AUD"
}, - "surchargeAmount": 0,
- "refundedAmount": 0,
- "merchantName": "string",
- "transactionId": "tran_Zz6SN_8bIUK88SSp",
- "orderType": "online",
- "payType": "PayPlan",
- "description": "string",
- "orderMetadata": { },
- "status": "accepted",
- "refundIds": [
- "rfnd_Zz6SOf8bIUK88SS5"
], - "disputeId": "dispute_Zz6SN_8bIUK88SSt",
- "disputeIds": [
- "dispute_Zz6SN_8bIUK88SSt"
], - "paidOn": "2019-08-24",
- "availableOn": "2019-08-24",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "paymentMethod": {
- "paymentMethodType": "Card",
- "cardBrand": "string",
- "cardLast4": "string",
- "cardFunding": "string",
- "cardIssuer": "string",
- "cardExpiryDate": "string",
- "cardCountry": "string",
- "cardCVCVerificationPassed": true,
- "card3DSVerificationPassed": true,
- "info3DSVerification": "string",
- "outcome3ds": {
- "info": "string"
}, - "card3DSFlow": "string",
- "cardStatement": "string"
}, - "serviceFees": {
- "variableAmount": 0,
- "fixedAmount": 0,
- "taxAmount": 0,
- "totalAmount": 0
}, - "customerDetails": {
- "customerId": "cust_Zz6SN_8bIUK88SSn",
- "referenceCustomerId": "CUST-48822821",
- "customerName": "string",
- "customerEmailAddress": "lucy.diamond@star.com",
- "customerPhoneNumber": "+61401234567"
}, - "timelines": [
- {
- "eventType": "PaymentSucceed",
- "eventTime": "2019-08-24T14:15:22Z",
- "amount": 0,
- "identifier": "string"
}
]
}, - "amount": 0,
- "currency": "AUD",
- "surchargeAmount": 0,
- "payType": "payplan"
}
}