Complete subscription and PAYPAL IPN

digivate 18 May, 2010
Afternoon

We've got a new site to launch on Monday and i've got one big problem that I can't solve.

The basic premise is that

1. customer fills out registration form (this is actually a community builder reg)
2. customer is re-directed to paypal to pay subscription
3. if paypal sucess then customer is re-directed to a success page back on the site
4. if paypal fails then customer is re-directed to a failure page back on the site

there are 2 problems

a. on point 3 - how do I completed the registration process on the success landing page
b. on point 4 - how do I remove the account on the failure page

I can't for the life of me figure out how to action a complete subscription after the paypal response.

Just as a note, we are using web payments standard to collect payment not the API.

Your help would be much appreciated.
GreyHead 19 May, 2010
Hi digivate,

You've got IPN in the topic title, have you implemented IPN in the form code?

I would probably change the work-flow a little to make life easier.

I'd register the user before they pay but leave the user 'blocked' (i.e. unactivated') then go to PayPal.

If PayPal returns a success then activate the user and send appropriate emails.

If PayPal fails then either delete the user or leave the record blocked.

The return URLs should probably come back to the Extra Code boxes as these aren't protected by the Security token checks. Add &task=extra to the URL to access Extra code 1, or &task=extra&extraid=2 to access Extra code 2, etc.

Bob
This topic is locked and no more replies can be posted.