Worldpay PayPal Error : BAD_REQUEST, Required URL not specified and no default defined

Worldpay PayPal Error : BAD_REQUEST, Required URL not specified and no default defined

WorldPay Paypal API 响应 400 错误 我遵循 here 中提供的代码 相同的代码功能适用于卡支付 附上邮递员的参考截图

由于是Paypal支付,您需要指定return 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",

}