views:

630

answers:

2

Hi, I have created a paypal Unsubscribe button in Java , when user click on it and after login to paypal account and unsubscribes , the paypal posts on the notifyurl successfully and i am able to update my database.But i want to return to my site after unsubscription. But not able to do so.

Is there any way so that i can return to my site,to display the GUI.

The unsubscribe button code paypal has only provided me with following url https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=%5Fsubscr-find&alias=sellr1%5F1252495907%5Fbiz%40gmail%2ecom

The notify url is my servlet.

Thanks in advance.

-Zeeshan

A: 

As far as I know there is always some kind of return URL parameter in the paypal api. Have you searched for that in the documentation?

Patrick Cornelissen
There is a return URL parameter for subscription button(and its working for subscription), but not in unsubscription button. also unsubscription doesn't invoke the return url parameter mentioned in the subscription button.
Zeeshan Khan
Strange. usually they're not that bad when they design their apis. I'd ask in the paypal dev forum, maybe a paypal dev answers.
Patrick Cornelissen
A: 

The parameters you want are the Success URL and Cancel URL. When you setup your Subscription button, open up the "Step 3: Customize advanced features" option. There, you'll see two checkboxes with input fields, one for the URL you want people to go to if they cancel the subscription, and one for if the agree to the payments.

saleemshafi