AMEB February 2016

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.

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.

If I call SetExpressCheckout with the one-time payment info, in the review page the info of the recurring payment won't be displayed. If I call SetExpressCheckout with the recurring payment info, in the review page the info of the one-time payment won't be displayed. 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"

Can anyone help with some ideas of how to set up the PayPal calls in the right way?

Thanks

Answers


Andrew Angell February 2016

SetExpressCheckout should be called with the one-time payment info, but with the billing agreement fields setup for recurring payments. 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.

Post Status

Asked in February 2016
Viewed 1,748 times
Voted 12
Answered 1 times

Search




Leave an answer