Take a payment using the charge token
POST
https://demo-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://demo-api.vivapayments.com/nativecheckout/v2/transactions' -H 'Content-Type: application/json' -d '{"amount":550,"preauth":false,"sourceCode":"Default","chargeToken":"ctok_zuWOkZVYJlAzkPmnI4eXmbhthjE","installments":1,"merchantTrns":"Merchant transaction reference","customerTrns":"Description that the customer sees","currencyCode":826,"customer":{"email":"mgourd@vivawallet.com","phone":"447498719486","fullname":"Dawei","requestLang":"en","countryCode":"GB"}}'