简体   繁体   English

PayPal:快速结帐。 在单笔交易中设置一次性付款和定期付款

[英]PayPal: Express Checkout. Set up a one-time payment and recurring payment in single transaction

I'm using PayPal Express Checkout and I'm trying to set up a one time payment and a recurring payment, all in the same transaction. 我正在使用PayPal Express Checkout,并且尝试设置一次性付款和定期付款,所有付款都在同一笔交易中进行。

According to Paypal, this is possible calling DoExpressCheckout before creating the recurring profile ( https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECRecurringPayments/ ) , but I'm having trouble with the SetExpressCheckout call. 根据Paypal的说法,可以在创建重复配置文件( https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECRecurringPayments/ )之前调用DoExpressCheckout,但是SetExpressCheckout遇到了问题呼叫。

If I call SetExpressCheckout with the one-time payment info, in the review page the info of the recurring payment won't be displayed. 如果我使用一次性付款信息致电SetExpressCheckout,则在审阅页面中不会显示定期付款的信息。 If I call SetExpressCheckout with the recurring payment info, in the review page the info of the one-time payment won't be displayed. 如果我使用定期付款信息致电SetExpressCheckout,则在查看页面中将不会显示一次性付款的信息。 If I call SetExpressCheckout with the both payments (one-time & recurring), it will throw an error saying "Billing Agreement is not supported for parallel payments" 如果我同时使用这两种付款方式(一次和重复)调用SetExpressCheckout,它将抛出一个错误,提示“并行付款不支持帐单协议”

Can anyone help with some ideas of how to set up the PayPal calls in the right way? 任何人都可以提供有关如何正确设置PayPal呼叫的想法的帮助吗?

Thanks 谢谢

SetExpressCheckout should be called with the one-time payment info, but with the billing agreement fields setup for recurring payments. 应该使用一次性付款信息来调用SetExpressCheckout,但是应为定期付款设置计费协议字段。 Then you would also call DoExpressCheckoutPayment with the one-time payment info, and then follow that up with CreateRecurringPaymentsProfile, and that's where you would specify the recurring payment details. 然后,您还可以使用一次性付款信息调用DoExpressCheckoutPayment,然后通过CreateRecurringPaymentsProfile进行后续操作,然后在其中指定重复付款详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM