curl -X post https://api.payflex.co.za/order/
-H 'content-type: application/json'
-H 'authorization: Bearer [access_token]'
-d '{
"amount": 105.00,
"consumer": {
"phoneNumber": "64274123456",
"givenNames": "James",
"surname": "Smith",
"email": "abc123.test@payflex.co.za"
},
"billing": {
"addressLine1": "23 Duncan Tce",
"addressLine2": "",
"suburb": "Kilbirnie",
"city": "Wellilngton",
"postcode": "1000",
"state": ""
},
"shipping": {
"addressLine1": "23 Duncan Tce",
"addressLine2": "",
"suburb": "Kilbirnie",
"city": "Wellilngton",
"postcode": "1000",
"state": ""
},
"description": "",
"items": [
{
"description": "test",
"name": "test",
"sku": "test",
"quantity": 1,
"price": 100.00
}
],
"merchant": {
"redirectConfirmUrl": "http://merchantsite.com/confirm",
"redirectCancelUrl": "http://merchantsite.com/cancel",
"statusCallbackUrl": "http://merchantsite.com/callback"
},
"merchantReference": "test",
"taxAmount": 0,
"shippingAmount": 5
}'