latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Return URL To Specifice Page

Home Forums Community Forum Return URL To Specifice Page

Tagged: 

This topic contains 5 replies, has 2 voices. Last updated by  Bruce 3 years, 8 months ago.

Topic Author Topic
Posted: Thursday Apr 18th, 2013 at 3:30 pm #47798

Creting new topic becuase i see no way to reply to other topics for some reason.

I need to create specific pages that a user gets returned to after purchasing different levels of membership

I saw that you could use a success url in short code but I am using the pay pay form code because i am using donations.

How can I add a specific url the user gets returned to when using the html/php form code for paypal?

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Thursday Apr 18th, 2013 at 11:50 pm #47852
Bruce
Username: Bruce
Staff Member

How can I add a specific url the user gets returned to when using the html/php form code for paypal?

You’d use the success attribute. You need s2Member Pro installed to do this.

See: Dashboard -› s2Member® -› PayPal® Pro Forms -› Custom Return URLs Upon Success

Posted: Friday Apr 26th, 2013 at 8:56 am #48473

I do have s2 member pro installed but not using pay pal pro… just standard paypal and using the donate to advance technique by changing the name hidden field to name= text

So i am not using the short code in the page, I am using the html/php in the page.

When user donates on level 1 to get to level 2 we want to redirect them after donation to a specific level 2 page.

So just wondering where and how to implement this success attritbute when using the html/php and not the shortcode

Thanks

Posted: Friday Apr 26th, 2013 at 8:59 pm #48520
Bruce
Username: Bruce
Staff Member

The s2member_paypal_return_success variable can be set to a custom return URL that you’d like to use by tacking it to the end of the return attribute of your button. However, please note that your custom URL should be URL encoded. See: http://meyerweb.com/eric/tools/dencoder/

Example:

<input type="hidden" name="return" value="http://example.com/?s2member_paypal_return=1&s2member_paypal_return_success=http%3A%2F%2Fwww.example.com%2Fthank-you" />
Posted: Saturday Apr 27th, 2013 at 10:05 am #48571

Thanks Bruce, I will give this a shot – Is the default return url the my account page?

Posted: Saturday Apr 27th, 2013 at 7:16 pm #48599
Bruce
Username: Bruce
Staff Member

Is the default return url the my account page?

The example I gave you would send a User back to http://example.com/?s2member_paypal_return=1, and assuming s2Member was installed, it would redirect to http://example.com/thank-you/.

Viewing 5 replies - 1 through 5 (of 5 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.