Firebase PayPal支付(沙盒)响应格式错误\u请求\u错误
我在我的项目中使用贝宝支付。我在创建付款时发现了一个问题。该请求是在Postman(Windows)和Node.js上使用axios(Firebase函数)发出的 我收到了一个关于此请求的响应Firebase PayPal支付(沙盒)响应格式错误\u请求\u错误,firebase,paypal,google-cloud-functions,paypal-sandbox,Firebase,Paypal,Google Cloud Functions,Paypal Sandbox,我在我的项目中使用贝宝支付。我在创建付款时发现了一个问题。该请求是在Postman(Windows)和Node.js上使用axios(Firebase函数)发出的 我收到了一个关于此请求的响应格式错误的请求\u错误: POST https://api.sandbox.paypal.com/v1/payments/payouts { "sender_payout_header": { "sender_batch_id": "2018083001", "email_subjec
格式错误的请求\u错误
:
POST https://api.sandbox.paypal.com/v1/payments/payouts
{
"sender_payout_header": {
"sender_batch_id": "2018083001",
"email_subject": "You have a payout!"
},
"items": [
{
"recipient_type": "EMAIL",
"amount": {
"value": "9.87",
"currency": "USD"
},
"note": "Thanks for your patronage!",
"sender_item_id": "2018083001001",
"receiver": "receiver@example.com"
}
]
}
我尝试将项[0]/note
更改为测试值:POSPYO001
,API将按预期响应201创建的
为什么沙箱只对正/负测试值起作用?这是一个限制,还是一个bug
另外,我的英语很抱歉。你找到答案了吗?还没有,我还没有尝试过,而且我没有访问贝宝支付的实时模式。