Paypal Express Checkout: Mixed Recurring and Non-Recurring Items

血红的双手。 提交于 2019-12-06 11:12:46

问题


I am working on our company cart which contains products that people can either subscribe to or just buy outright. The problem is that it should require customers to add both types in a single order.

Question: It is possible to to tell Paypal to charge selected items as subscription and the others as one-time payments?

Thanks in advance.


回答1:


According to the advanced features documentation page 47/48, this is possible by calling SetExpressCheckout with the recurring products as BillingAgreements and the other products as normal, then calling DoExpressCheckoutPayment if there are one-time payments followed by CreateRecurringPaymentsProfile for the recurring products (up to 10).

Caveat: This is a WIP for me, relaying what information I could find.



来源:https://stackoverflow.com/questions/19194872/paypal-express-checkout-mixed-recurring-and-non-recurring-items

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