Attempt payment
POST
https://api.vivapayments.com/nativecheckout/v2/transactions
Body
PARAM
Key |
Datatype |
Required |
Description |
HEADERS
Key |
Datatype |
Required |
Description |
Content-Type
|
string |
|
|
RESPONSES
status
curl -X POST 'https://api.vivapayments.com/nativecheckout/v2/transactions' -H 'Content-Type: application/json' -d '{"amount":100,"preauth":false,"sourceCode":"[4-digit code of your payment source]","chargeToken":"[charge token]","installments":1,"allowsRecurring":false,"merchantTrns":"Merchant transaction reference","customerTrns":"Short description of items/services purchased to display to your customer","currencyCode":826,"customer":{"email":"name@example.com","phone":"442037347770","fullname":"John Smith","requestLang":"en","countryCode":"GB"}}'