PayPal REST Subscriptions API not showing price in order summary

拟墨画扇 提交于 2020-01-22 14:42:05

问题


I am testing the PayPal REST API for subscriptions in the sandbox environment, and have noticed that, when going to the approval URL returned after creating an agreement, no price is shown under the order summary pane on the left of the page. A description is shown but no price/tax etc.

The plan id is passed to the call to create an agreement, which contains the information that I would expect to see as a user when approving the payment. Is this a bug or is there something that I am supposed to enable in the merchant account, or perhaps something additional that needs to be sent when creating the agreement? I've read other posts regarding this on stack overflow (although they predate the creation of the subscriptions REST API) talking about passing a transaction field, but this isn't valid in the subscriptions create agreement schema.


回答1:


Your observations are (currently) correct. As REST API based Billing Plans are based on Express Checkout Recurring Payments, you're going to see a similar behavior. Right now, there are two options:

  1. You populate the description with more agreement details.
  2. You pass a regular description and make sure the customer is aware of the billing terms before your execute the agreement.

Going forward, we're likely going to include this info in some later updates. I'm following up with that to make sure a user story is filed for this.



来源:https://stackoverflow.com/questions/28093117/paypal-rest-subscriptions-api-not-showing-price-in-order-summary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!