Used curl in php before and seemed straighforward, curl_init, curl_setopt and get response with = curl_exec.
However, don't understand the format in the Worldpay documentation:
curl https://api.worldpay.com/v1/orders
-H "Authorization:your-test-service-key"
-H "Content-type: application/json"
-X POST
-d '{
"token" : "your-order-token",
"orderDescription" : "your-order-description",
"amount" : 500,
"currencyCode" : "GBP" }'
How do I get the response for that? Cheers
However, don't understand the format in the Worldpay documentation:
curl https://api.worldpay.com/v1/orders
-H "Authorization:your-test-service-key"
-H "Content-type: application/json"
-X POST
-d '{
"token" : "your-order-token",
"orderDescription" : "your-order-description",
"amount" : 500,
"currencyCode" : "GBP" }'
How do I get the response for that? Cheers
Comment