Community Support Forums — WordPress® ( Users Helping Users ) — 2011-10-31T16:02:57-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14810 2011-10-31T16:02:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=50566#p50566 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]> Statistics: Posted by eizil — October 31st, 2011, 4:02 pm


]]>
2011-10-31T10:42:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=50525#p50525 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]> Thanks for the follow-up.

This feature is connected to the use of the success="" Shortcode Attribute, available and supported only with s2Member Pro. I believe the confusion here on this issue might be solved with this documentation from s2Member Pro: s2Member -> PayPal Buttons -> Shortcode Attributes (Explained )

( click to enlarge )
SNAG-0090.png

Statistics: Posted by Jason Caldwell — October 31st, 2011, 10:42 am


]]>
2011-10-30T22:26:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=50510#p50510 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]>
Did i forgot to set something else?

Statistics: Posted by eizil — October 30th, 2011, 10:26 pm


]]>
2011-10-11T12:26:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=45352#p45352 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]> WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes -> success

I hope this helps. :)

Statistics: Posted by Cristián Lávaque — October 11th, 2011, 12:26 pm


]]>
2011-10-10T00:53:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=45232#p45232 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]>
Cristián Lávaque wrote:
Kregg, that variable that Jason suggested, would go in the return URL you enter in your PayPal settings. PayPal -> Account Profile -> Website Payment Preferences -> Auto-Return URL

Thanks for the reply. I need to be able to have a different return url for each or our packages to be sold so they have a package specific page to return to. I don't mind going the pro route but I have no need at all to use paypal pro other than this and the monthly fee for that doesn't seem justified for just this function if there is a PHP solution.

Statistics: Posted by kregg — October 10th, 2011, 12:53 am


]]>
2011-09-30T12:36:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=41987#p41987 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]>
Jason Caldwell wrote:
Or, you can use this Filter, perhaps something like this:

Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Code:
<?php
add_filter 
("ws_plugin__s2member_redirection_url_after_modification", "my_redirection_url_after_modification");
function my_redirection_url_after_modification ($s2member_default_value, $vars = array ())
    {
        return ($my_custom_url = "http://example.com/thanks-for-upgrading/");
        // print_r($vars); for debugging, if you need more information before creating this URL.
    }
?>
[i]Using this Filter, makes it possible for you to redirect an "existing" User/Member after they complete checkout ( i.e. after a modification takes place ), and s2Member's PDT processing WILL still take place, even though you're re-routing the Customer to your own custom URL here. This Filter is the recommended way to handle "existing" User/Member modifications, with your own custom URL, like you see here.


Thank you for posting this. Very useful!

Statistics: Posted by roflmao — September 30th, 2011, 12:36 pm


]]>
2011-09-27T19:25:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=41730#p41730 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]> I recommend s2Member Pro integrated with PayPal Pro, as described below.

What is the best, most cost effective way to help get members through the payment process, registered, and able to use the site?

Registration Before Checkout? ( reversing the process )
By default, s2Member will send a Customer directly to PayPal®, and only after checkout is completed does the Customer have the ability to register a Username/Password for access to your site. This process works very well in most cases, and it has the benefit of increasing conversion rates; because there are fewer obstacles for the Customer on their way to the actual checkout process at PayPal®.

That being said, we believe the "ideal" approach is a combined Checkout/Registration process; in just one simple step ( available with s2Member Pro via PayPal® Pro integration ). But even with PayPal® Standard integration, there is a way to accomplish (registration before checkout), thereby reversing the process — if you prefer it that way. This is accomplished by turning Open Registration (on), and then making a PayPal® Button available to Free Subscribers at Level #0. In other words, you can let visitors register for free at Level #0, then charge them for access to higher Member Levels [1-4]. For further details, please check your WordPress® Dashboard under: s2Member -> General Options -> Open Registration. If you're running a Multisite Network, see: s2Member -> Multisite (Config) -> Registration Configuration.

s2Member's Simple Conditionals can help you further integrate this process, by allowing you to integrate a special PayPal® Button on your Login Welcome Page; one that will be seen only by Free Subscribers at Level #0. Please check your WordPress® Dashboard under: s2Member -> API Scripting -> Simple Conditionals. We also suggest reading over the documentation on PayPal® Modification Buttons. See: s2Member -> PayPal® Buttons -> Subscription Modifications.

Statistics: Posted by Jason Caldwell — September 27th, 2011, 7:25 pm


]]>
2011-09-25T00:26:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=39051#p39051 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]> PayPal -> Account Profile -> Website Payment Preferences -> Auto-Return URL

Statistics: Posted by Cristián Lávaque — September 25th, 2011, 12:26 am


]]>
2011-09-23T14:51:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=38974#p38974 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]>
http://zendaya.com/?s2member_paypal_return=1 is the page that comes up, and there is a very small link on that page for them to click on to register -- I think they are getting confused, and not doing that, and/or they are going directly from paypal back to our site, and missing the registration step at all.

What is the best, most cost effective way to help get members through the payment process, registered, and able to use the site?

Statistics: Posted by lolsmg — September 23rd, 2011, 2:51 pm


]]>
2011-09-17T18:32:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=38586#p38586 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]>
Thanks

Statistics: Posted by kregg — September 17th, 2011, 6:32 pm


]]>
2011-09-13T21:59:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=35930#p35930 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]> &s2member_paypal_return_success=http://www.example.com/my-thank-you-page/in the long code window below to have it created with the short code?

Statistics: Posted by kregg — September 13th, 2011, 9:59 pm


]]>
2011-09-12T21:04:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=34649#p34649 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]>
Thanks

Statistics: Posted by kregg — September 12th, 2011, 9:04 pm


]]>
2011-09-12T18:00:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=34621#p34621 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]> &s2member_paypal_return_success=
Jason Caldwell wrote:
This forces s2Member to do the following after PayPal checkout:
Code:
/?s2member_paypal_return=1&s2member_paypal_return_success=http://www.example.com/my-thank-you-page/
In other words, s2Member processes PDT, and then redirects the Customer to your own custom page, specified in the success="" Shortcode Attribute, which ends up in the query string like you see here.

Statistics: Posted by Jason Caldwell — September 12th, 2011, 6:00 pm


]]>
2011-09-12T00:35:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=34583#p34583 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]>
Thanks

Statistics: Posted by kregg — September 12th, 2011, 12:35 am


]]>
2011-09-02T21:37:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=33819#p33819 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]>

Statistics: Posted by Cristián Lávaque — September 2nd, 2011, 9:37 pm


]]>
2011-09-02T21:01:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=33814#p33814 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]> Very welcome.

Just to note also ( someone asked me this via email just now ).
A "modification" takes place any time an existing User/Member is going through the checkout process, period. In other words, anytime s2Member is "modifying" an existing account within WordPress ( i.e. if they already have a User ID in the database, all transactions are modifications, because s2Member is modifying an existing account. ).

Statistics: Posted by Jason Caldwell — September 2nd, 2011, 9:01 pm


]]>
2011-09-02T20:47:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=33811#p33811 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]>
Jason Caldwell wrote:
Hi there. Yes, you are correct in both A and B assumptions.


Well, my "assumptions" were actually based on your prior advice, so I had a good chance of "guessing" right!

Thanks for this thorough answer. I think the filter option is just what I need. Existing members can upgrade, I can specify a custom landing page, and I get the benefit of s2Member's PDT handling logic (to avoid any confusion with delayed IPN messages).

Statistics: Posted by PseudoNyhm — September 2nd, 2011, 8:47 pm


]]>
2011-09-02T19:12:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=33793#p33793 <![CDATA[Re: Circumventing s2Member PayPal Return URL]]> Hi there. Yes, you are correct in both A and B assumptions.

Note, starting with s2Member Pro v110815+, it is now possible to either customize the Thank-You Return Page template, using the instructions provided in your Dashboard, under: s2Member -> PayPal Options -> Auto-Return/PDT Integration, or you can use the success="" Shortcode Attribute ( made available by s2Member Pro ) for each Button and/or Pro Form that you integrate; and, now in s2Member Pro v110815+, this WILL still allow PDT processing to take place automatically ( made possible in v110815+ ).

For instance, here is an example:
Code:
[s2Member-PayPal-Button ... success="http://www.example.com/my-thank-you-page/" ... /]
( this Shortcode is abbreviated for clarity in this regard )

This forces s2Member to do the following after PayPal checkout:
Code:
/?s2member_paypal_return=1&s2member_paypal_return_success=http://www.example.com/my-thank-you-page/
In other words, s2Member processes PDT, and then redirects the Customer to your own custom page, specified in the success="" Shortcode Attribute, which ends up in the query string like you see here.

BUT, please note. ... excerpt from Shortcode Attributes ( Explained ) in your Dashboard...
success="" Success Return URL ( optional ). s2Member handles this automatically for you. However, if you would prefer to take control over the landing page after checkout ( i.e. your own custom Thank-You Page ), you can. If supplied, this must be a full URL, starting with http://. Note, s2Member will NOT use this value if an existing account holder is being modified. s2Member handles account updates ( i.e. billing modification ) in a more dynamic way. Your Success Return URL is only applied to (new) Customers.



In your test case, you describe an "existing" Free Subscriber upgrading to Level #1. In that case, the success="" Attribute would NOT help you, as explained above. So instead, you can either customize your Auto-Return / Thank You Page template, using the instructions provided in your Dashboard, under: s2Member -> PayPal Options -> Auto-Return/PDT Integration...

Or, you can use this Filter, perhaps something like this:

Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Code:
<?php
add_filter 
("ws_plugin__s2member_redirection_url_after_modification", "my_redirection_url_after_modification");
function my_redirection_url_after_modification ($s2member_default_value, $vars = array ())
    {
        return ($my_custom_url = "http://example.com/thanks-for-upgrading/");
        // print_r($vars); for debugging, if you need more information before creating this URL.
    }
?>
Using this Filter, makes it possible for you to redirect an "existing" User/Member after they complete checkout ( i.e. after a modification takes place ), and s2Member's PDT processing WILL still take place, even though you're re-routing the Customer to your own custom URL here. This Filter is the recommended way to handle "existing" User/Member modifications, with your own custom URL, like you see here.

However, the success="" Shortcode Attribute is recommended for "new" Users/Members, as that's easier to integrate than custom PHP code with a Filter, needed only with modifications.

Statistics: Posted by Jason Caldwell — September 2nd, 2011, 7:12 pm


]]>
2011-09-01T12:15:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14810&p=33640#p33640 <![CDATA[Circumventing s2Member PayPal Return URL]]> viewtopic.php?f=4&t=10300#p22105

Somewhere I read (but I can't find the reference) that s2Member can use PayPal PDT payment return data to provisionally and immediately set a member's new level, without having to await the IPN message.

That is, suppose a user buys a Level0-to-Level1 (upsell) subscription. Using button code return URL (or AutoReturn), with PDT configured, and if the URL contains /?s2member_paypal_return=1, then s2Member can interpret the PDT data to determine if the transaction was a success. If so, then s2Member can immediately set the user's level to Level1.

(Notice that this scenario does not include a PayPal Free Trial period, because PayPal does not provide PDT data when no payment was actually made... which is unfortunate, but true.)

If I do not use a URL with /?s2member_paypal_return=1, then s2Member won't see the PDT, and cannot immediately set the user to Level1 (and I must await the IPN, which could be seconds or minutes depending on various issues).

  1. Am I correct that s2Member will use PDT information to set a user's Level (before IPN comes through)?
  2. By not using /?s2member_paypal_return=1, am I losing this capability (such that IPN is then the ONLY way level will be upgraded)?

Many thanks for any additional insight.

Statistics: Posted by PseudoNyhm — September 1st, 2011, 12:15 pm


]]>