Question

I have a Paypal pro account. Following the videos below from paypal explain what I'm trying to do, except that it does not explain how to create recurring billing profile through this method.

http://www.youtube.com/watch?v=qyiv3ndRcZI

http://www.youtube.com/watch?v=2Z5v-ha0YII

I understand through the API how to manually create a recurring billing profile through the Direct Payment API (Recurring), but this only works for users that don't want to go through paypal (even though technically it is). For the people that choose to pay through paypal, I believe it brings them to express checkout. How do I create an iframe on my page like the layout C examples in those videos except for recurring billing instead of a 1 time payment?

I've read in some documentation somewhere about a BAID (Buyers Agreement ID) that might be necessary but I don't know how I would integrate it in the example code they give in those videos. Any help would be greatly appreciated!

Was it helpful?

Solution

The iframe solution you're referring to is called Payments Advanced. To my knowledge recurring billing is not yet included with Advanced.

The full PayPal Pro would give you access to create profiles with cards directly like you mentioned, or if you want to let them do it with payPal you would send them through the Express Checkout flow, and that's where you would be creating the billing agreement and the profile accordingly.

Specifically, you'll call SetExpressCheckout to obtain a token, and this is the request you need to make sure to include the billing agreement parameters with.

GetExpressCheckoutDetails would then allow you to obtain buyer info after they've signed in and agreed to continue.

Then for recurring payments you'd finish it all off with CreateRecurringPaymentsProfile.

If you're doing all of this with PHP I'd recommend taking a look at my class library for PayPal. It'll make these API calls very simple for you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top