我想在“创建订单”POST /v2/checkout/orders
调用期间设置运送首选项。
如果我使用已弃用的 using 方法application_context
,那么它可以正常工作:
{
"intent": "CAPTURE",
"purchase_units": [
{
"amount": {
"currency_code": "GBP",
"value": "110.62"
}
}
],
"application_context": {
"shipping_preference": "NO_SHIPPING"
}
}
但是,如果我使用推荐的 using 方法,experience_context
那么我不会返回CREATED
but的状态PAYER_ACTION_REQUIRED
。
{
"intent": "CAPTURE",
"purchase_units": [
{
"amount": {
"currency_code": "GBP",
"value": "110.62"
}
}
],
"payment_source": {
"paypal": {
"experience_context": {
"shipping_preference": "NO_SHIPPING"
}
}
}
}
这是为什么?
注意:一年前 PayPal 社区也提出了同样的问题:
但问题始终没有得到解决。