Create the Payment Order
POST
https://demo-api.vivapayments.com/checkout/v2/isv/orders?merchantId={id}
Body
PARAM
Key |
Datatype |
Required |
Description |
merchantId
|
string |
|
|
HEADERS
Key |
Datatype |
Required |
Description |
RESPONSES
status
curl -X POST 'https://demo-api.vivapayments.com/checkout/v2/isv/orders?merchantId={id}?merchantId={id}' -d '{"amount":200,"customerTrns":"This is a description displayed to the customer","customer":{"email":"someone@vivawallet.com","fullName":"George Seferis","phone":"306949006456","countryCode":"GR","requestLang":"el-GR"},"paymentTimeout":1800,"currencyCode":978,"preauth":false,"allowRecurring":false,"maxInstallments":0,"paymentNotification":true,"tipAmount":0,"disableExactAmount":false,"disableCash":false,"disableWallet":false,"isvAmount":0,"sourceCode":"Default","merchantTrns":"This is a short description that helps you uniquely identify the transaction","tags":["sample string 1","sample string 2","sample string 3"],"resellerSourceCode":"Default","klarnaOrderOptions":{"attachment":{"body":"string","contentType":"string"},"billingAddress":{"city":"London","email":"johndoe@example.com","phone":"01234567890","title":"Mr","region":"string","country":"GB","attention":"string","givenName":"John","familyName":"Doe","postalCode":"SW11 1AA","streetAddress":"1 Test Street","streetAddress2":"Flat 5","organizationName":"string"},"shippingAddress":{"city":"London","email":"johndoe@example.com","phone":"01234567890","title":"Mr","region":"string","country":"GB","attention":"string","givenName":"John","familyName":"Doe","postalCode":"SW11 1AA","streetAddress":"1 Test Street","streetAddress2":"Flat 5","organizationName":"string"},"orderLines":{"name":"Product","type":"physical","taxRate":"2000","quantity":"1","unitPrice":"5000","imageUrl":"https://www.example.com/example","reference":"987654","totalAmount":"4000","productUrl":"https://www.example.com/example","merchantData":"string","quantityUnit":"pcs","totalTaxAmount":"1000","totalDiscountAmount":"1000","subscription":{"name":"string","interval":"MONTH","intervalCount":"3"},"productIdentifiers":{"size":"12","brand":"Acme","color":"Teal","categoryPath":"Clothing \u003e Women's \u003e Dresses","globalTradeItemNumber":"123-456-789","manufacturerPartNumber":"123456789000"}}}}'