Payment Methods
To create a customer payment using a Primary Transaction, you must include the paymentMethod object in the JSON call. Dependent on the requestType, you’ll make some changes to the paymentMethod object to reflect different payment instruments and transaction types.
To take a Card Payment, use the PaymentCardPaymentMethod:
{
"paymentCard": {
"number": "5424180279791732",
"expiryDate": {
"month": "03",
"year": "21"
},
"securityCode": "977"
}
}
To take a Token Payment, use the PaymentTokenPaymentMethod:
{
"paymentToken": {
"value": "1235325235236",
"function": "DEBIT",
"securityCode": "977"
}
}
Within the paymentMethod object, you’ll provide different values dependent on the payment method type being used for payment. This defines the payment instrument the customer is using to make the transaction. The available options available are defined below. These will be regularly updated as more payment methods become available.
Further information on the payload changes associated with each of these methods is accessed via clicking the paymentMethodType.
paymentMethodType | Description |
---|---|
PAYMENT_CARD | The Payment Card payment method covers all Credit and Debit Card types and networks. Your merchant acquiring contract will tell you which of the payment networks you can accept payments for. |
PAYMENT_TOKEN | The Payment Token payment method enables you to use a token created by us, instead of the actual payment method details. More information is provided on using Tokens here. |
Updated 7 months ago