我已经能够通过简单的付款调用获得 PayPal 自适应付款。 但我想获得运输详细信息。 我尝试将操作类型设置为创建,然后使用返回的 payKey 发送 SetPaymentOptions 调用设置 RequireShippingAddressSelection = True,然后像以前一样使用付款调用返回的 url,但仍然没有送货信息。
我见过其他人遇到这个问题,但没有答案。
谢谢
最佳答案
我也有同样的问题,以下是我从 PayPal 技术支持处得到的信息。
It is not possible for you to supply a shipping address as part of an Adaptive Payments transaction. However, you can request that the customer selects a shipping address from the addresses existing on their PayPal account when they checkout using the embedded flow. Details of the embedded flow are available here: https://developer.paypal.com/webapps/developer/docs/classic/adaptive-payments/integration-guide/APIntro/ (Search for Embedded Payments)
If you think this is an option you would also be required to implement another API call, SetPaymentOptions, which would be sent after the Pay API request. Within the SetPaymentOptions API request you would add the parameter requireShippingAddressSelection. Details of the SetPaymentOptions API are located here: https://developer.paypal.com/webapps/developer/docs/classic/api/adaptive-payments/SetPaymentOptions_API_Operation/
If your application requires that you supply a custom shipping address to PayPal at the time of payment then you will need to consider using Express Checkout instead of Adaptive Payments.
关于paypal - 自适应付款没有送货信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18693621/