Поскольку это платеж Paypal, вам необходимо указать обратные URL-адреса для обработки платежа, такие как successUrl, pendingUrl, ... как показано ниже: Подробнее см. Здесь: https://developer.worldpay.com/jsonapi/api#orders
{
"token" : "YOUR-TOKEN",
"orderType" : "ECOM",
"amount" : 500,
"currencyCode" : "GBP",
"orderDescription" : "Order description",
"customerOrderCode":"Order code",
"name" : "John Smith",
"billingAddress" : {
"address1" : "address1",
"postalCode" : "postCode",
"city" : "city",
"countryCode" : "GB"
},
"deliveryAddress": {
"firstName": "John",
"lastName": "Smith",
"address1": "address1",
"postalCode": "postCode",
"city": "city",
"countryCode": "GB",
"telephoneNumber": "02079460761"
},
"successUrl": "https://www.yourwebsite.co.uk/success",
"pendingUrl": "https://www.yourwebsite.co.uk/pending",
"failureUrl": "https://www.yourwebsite.co.uk/failure",
"cancelUrl": "https://www.yourwebsite.co.uk/cancel",
"shopperEmailAddress": "name@domain.co.uk",
}