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.

Auto-Return URLs

Home Forums Community Forum Auto-Return URLs

This topic contains 3 replies, has 3 voices. Last updated by  Raam Dev 4 years, 7 months ago.

Topic Author Topic
Posted: Monday Jun 4th, 2012 at 9:33 pm #15410

I am using two PayPal buttons in S2MPro. One is for recurring subscriptions for website access. Another is for a single, one-time purchase (Buy Now).

My question is that only one auto return URL is stipulated in PayPal.

I would like to have the recurring subscriptions return to a Member Profile page and the single, one-time purchase return to a Thank You page.

What is the best way to structure this?

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Tuesday Jun 5th, 2012 at 6:28 am #15458

Hi Kris.

You’d use the success attribute to specify the URL the user should be taken to after checkout. [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Shortcode Attributes -> success[/hilite]

I hope it helps. :)

Posted: Tuesday Jun 5th, 2012 at 9:01 am #15496

I still don’t understand.

I have generated a PayPal Button for Level #1 Access. It’s a monthly recurring subscription at $15.00. I have PayPal set up with the Auto-Return URL: http://mysite.com/wordpress/?s2member_paypal_return=1 as stipulated under PayPal Options > PayPal PDT Auto-Return Integration. I am using the success=”” attribute in the shortcode and it looks like this:

[s2Member-PayPal-Button level="1" ccaps="" desc="Boconoco - Monthly Subscription" ps="Boconoco" lc="" cc="USD" dg="0" ns="1" custom="mysite.com" ta="0" tp="0" tt="D" ra="15.00" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" success="/thanks/" /]

But I also sell job postings to employers who are not members on a one-off basis. They need a Buy Now button for the purchase. The button I had been using I generated on the PayPal site. This would be fine, but I can only have one Auto-Return URL on the PayPal site and it has to be http://mysite.com/wordpress/?s2member_paypal_return=1.

To make this work, do I need to generate another PayPal button through S2MPro? If so, should it be a PayPal Capability (Buy Now) Button or a PayPal Specific Post/Page (Buy Now) Button?

If it is important here, I do not have a PayPal Pro account because I prefer not to have the $30/mo expense. I am using a PayPal Business account.

Posted: Tuesday Jun 5th, 2012 at 9:37 am #15508
Raam Dev
Username: Raam
Staff Member

Kris,

The Auto-Return URL is not the same as the return page that purchasers see after checkout. The Auto-Return URL is used by s2Member to process the transactions on the back end.

If you use the success= attribute in your shortcodes, then when PayPal sends the visitor to http://mysite.com/wordpress/?s2member_paypal_return=1, s2Member will automatically redirect to the correct URL after checkout.

However, your success= attribute should contain the full URL, e.g. success=”http://mysite.com/thanks/”. You can use a different URL for each shortcode that you generate, so different buttons can redirect purchasers to different places.

Regarding your last question: If you want to sell a specific post or page without requiring membership access (i.e., you want to sell access to a post/page without an account being created for the purchaser), then you should use the Specific Post/Page (Buy Now) Buttons. The Capability (Buy Now) buttons are for selling additional features to existing members.

Viewing 3 replies - 1 through 3 (of 3 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.