当我使用此 API“ https://api.sandbox.paypal.com/v1/payments/payment ”获取“approval_url”时。
它给出的错误如下:
{"name":"VALIDATION_ERROR","details":[{"field":"redirect_urls","issue":"当 payment_method 为 'paypal' 时必须填写此字段"}],"message":"无效请求
查看详细信息 ","information_link":" https://developer.paypal.com/docs/api/payments/#errors ","debug_id":"e48112ca1cd19"}
我已经提到了参数。这是我的阵列。
{
"intent":"sale",
"experience_profile_id":"XP-AAAA-AAAA-AAAA-AAAA",
"payer":{
"payment_method":"paypal"
},
"transactions":[
{
"amount":{
"total":"9.00",
"currency":"EUR"
}
}
]
},
"redirect_urls":{
"return_url":"http://example.com/success",
"cancel_url":"http:/example.com/error"
}
请让我知道是什么问题。
提前致谢