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.

redirect to custom url after paypal

Home Forums Community Forum redirect to custom url after paypal

This topic contains 7 replies, has 3 voices. Last updated by  Cristián Lávaque 4 years, 2 months ago.

Topic Author Topic
Posted: Thursday Oct 25th, 2012 at 6:21 pm #29710

hi everyone. I have integrated s2 pro but was wondering if a custom registration url can be assigned after someone has entered there paypal details. I am assuming when someone pays then is redirected to wp – registration page their s2member level is stored? basically im looking for 2 types of registration details depending on the access level they have bought. for example package 2 is bought and redirected to /sign up. The current level is checked and appropriate form shown.
[s2If current_user_can(access_s2member_level1)]
[user-meta type=”registration” form=”package1_sign_up”]
[/s2If]
[s2If current_user_can(access_s2member_level2)]
[user-meta type=”registration” form=”package2_sign_up”]
[/s2If]

Ideally the forms need to filled in on sign up, is this possible?
ps they do not have a paypal pro account just standard for now.

Many thanks

Wayne

List Of Topic Replies

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Friday Oct 26th, 2012 at 9:08 am #29772

Hi Wayne.

Are you using the PayPal buttons or pro-forms?

[[s2If current_user_can(access_s2member_level1)]
[user-meta type=”registration” form=”package1_sign_up”]
[/s2If]]
[[s2If current_user_can(access_s2member_level2)]
[user-meta type=”registration” form=”package2_sign_up”]
[/s2If]]

You can certainly use conditions to show one or the other. These are also relevant:
Video » s2Member (Advanced Conditionals)
Knowledge Base » Using variables in a shortcode

Posted: Friday Oct 26th, 2012 at 9:50 am #29783

Hi Cristian, thanks for your reply.
We only have a standard paypal account at the moment but have bought s2pro. I understand all the conditionals and shortcodes but have a fairly bespoke, custom meta sign up form. I was going to use a standard paypal btn for level 1 and level 2. When payment has gone through s2 asks for you to register at wp-login.php?action=register. I would like to send them to a custom page designed for sign up ie/signup, this has all the sign up fields needed depending on your level. These profile fields have not been created in s2 so a pro form will not show the extra fields.

I was thinking a hack to change the redirect url, unless i have i missed something with proforms or hack a proform template to show the custom fields already created?

Thanks Wayne

Posted: Friday Oct 26th, 2012 at 1:11 pm #29830
Raam Dev
Username: Raam
Staff Member

Hi Wayne,

You can certainly redirect people away from the WordPress Registration page and send them somewhere else. WordPress provides hooks for doing that. Something like this should work. (If you only want to redirect the registation page and not both the login and registration page, you’ll need to check for the presence of ?action=register and only redirect if it’s there.)

Posted: Monday Oct 29th, 2012 at 7:06 am #30008

Hi
Sorry for my ignorance here guys, heres the process of the site.
I have set up a sandbox for testing. I use a normal Paypal btn which takes me to Paypal and I complete my transaction, I thought this is where an auto redirect takes me to the register page? instead I click on the back to site btn in Paypal and it goes to ?s2member_paypal_return=1. Is this where the new user receives an activation/confirmation email, which they click and takes me to the register page? Im a little confused on the s2 payment process. I am assuming people do not need to preregister before buying? Ideally once they have confirmed their payment the user should go to a specific sign up page depending on their purchased access level. (level 1 or 2)

Can you clarify for me if this possible and some direction please.
Kindest Regards

Wayne

Posted: Monday Oct 29th, 2012 at 2:12 pm #30055
Raam Dev
Username: Raam
Staff Member

Hi Wayne,

When the customer is returned to the site after payment, s2Member displays one of two messages: Either “Click here to Register” or “Check your email for a registration link”. The reason for this is that s2Member needs to know from PayPal if the payment was successful. Sometimes PayPal sends the response right away and s2Member can show the customer a “click here to register” message. But if PayPal doesn’t send the response right away, s2Member needs to wait for the confirmation of payment. In that case, s2Member tells the customer to check their email for the registration link. When s2Member receives the response from PayPal (sometimes a few minutes later), it sends the email to the customer with the registration link.

If you want to avoid all of this and make the process smoother, we recommend using the s2Member Pro-Forms. Using the Pro-Forms, the user will register on your site before they are sent to PayPal to pay. At this point they are registered on your site as a Free Subscriber (Level 0) and when s2Member receives confirmation of payment from PayPal, it will upgrade the users level from Free Subscriber (Level 0) to whatever level they’re signing up for.

Posted: Monday Oct 29th, 2012 at 4:00 pm #30090

Hi Raam, thanks for your support. it looks like pro forms is the way forward, im assuming these can be used with standard paypal. Finally can the tiny url link in the email go to different registration pages depending on membership?

Thanks

w

Posted: Tuesday Oct 30th, 2012 at 12:54 pm #30168

The pro-forms don’t integrate with PayPal Standard, but with Express Checkout (free) or PayPal Pro (paid). Express Checkout is similar to PayPal Standard.

The registration link is not needed with pro-forms, because registration is done right there. If you look at the pro-form’s confirmation email, you’ll notice there’s no registration link. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Signup Confirmation Email (pro-form)[/hilite]

[hilite mono]%%registration_url%%[/hilite] = Not needed with PayPal® Pro Form integration. Pro Forms handle this automatically.

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