3
votes

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

1
Can you share the code you've tried?jmargolisvt

1 Answers

0
votes

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.