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.

Create profile after payment? (members only)

Home Forums Community Forum Create profile after payment? (members only)

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

Topic Author Topic
Posted: Wednesday May 1st, 2013 at 10:59 pm #48976
concepts 123
Username: mdtvip

is it possible to make a payment FIRST through Paypal……..then return back to a registration page for members to create their profile?….but only for paid members, NOT FREE registration.

List Of Topic Replies

Viewing 20 replies - 1 through 20 (of 20 total)
Author Replies
Author Replies
Posted: Thursday May 2nd, 2013 at 11:04 am #49014
Eduan
Username: Eduan
Moderator

Hello there,

I’m afraid I don’t understand the question… Isn’t this how it already works?

Users that are paying for access pay through PayPal and only after the payment has been confirmed do they get redirected to a registration page for them to register their user(name). This is if you’re using the PayPal buttons.

And if a free user wants to register he just doesn’t pay, and goes directly to creating his user(name).

Taking this into account, how is it working right now, and how do you want it to work? Are you using the pro-forms or the buttons?

– Eduan

Posted: Thursday May 2nd, 2013 at 2:12 pm #49027
concepts 123
Username: mdtvip

I had the free s2member plugin before upgrading, does the pro version automatically bring the person to the registration page? I would like it to use the Paypal form button……….person pays for a recurring subscription…….then after payment is sent directly to the registration page to make their profile for paid members only.

In the free version, this was not doing this.

Posted: Thursday May 2nd, 2013 at 6:22 pm #49047

s2Member Pro doesn’t change what the free version does, only adds new things. You can have the Pro add-on installed and still use PayPal Standard buttons as you were before.

If you have Open Registration disabled, the user won’t be allowed to register free. Only after having paid using the button generated with the s2Member shortcode, will he be allowed to register.

Also, when testing, remember to log out of your admin account and to clear the cookies in your browser, so it behaves as it would with a normal visitor.

Posted: Thursday May 2nd, 2013 at 6:53 pm #49059
concepts 123
Username: mdtvip

Yes, the open registration is disabled…..please understand the flow that I am talking about….

— Open registration closed
— A customer clicks on the “join now” button (which is created with Paypal Button Shortcode)
— The customer pays for the recurring subscription on the Paypal site for a level 1 access
— Once payment is made……..the customer is sent BACK to my site to a registration page so they can create their profile.

How can this be accomplished?

Posted: Friday May 3rd, 2013 at 2:42 am #49093

That’s the way the PayPal buttons integration already works, except for the return, which goes to an s2Member return page with a link to then register the account. You can try skipping that page using the [hilite mono]success[/hilite] attribute, pointing to wp-login.php?action=register. [hilite path]Dashboard -› s2Member® -› PayPal® Buttons -› Shortcode Attributes -> success[/hilite]

Posted: Friday May 3rd, 2013 at 4:35 am #49106
concepts 123
Username: mdtvip

Where would this “success” code pointing to “wp-login.php?action=register” be put in the following code?

[s2Member-PayPal-Button level="1" ccaps="" desc="Membership" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.mdtvip.com" ta="9.99" tp="30" tt="D" ra="9.99" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" /]

Also, will this code work in a disabled registration? Meaning ONLY for paid members of level 1 access.

Posted: Friday May 3rd, 2013 at 5:16 pm #49143

You’d add it to the shortcode:

[[s2Member-PayPal-Button level="1" ccaps="" desc="Membership" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.mdtvip.com" ta="9.98" tp="30" tt="D" ra="9.99" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" success="http://www.mdtvip.com/wp-login.php?action=register" /]]

Please read the documentation for the success attribute here: [hilite path]Dashboard -› s2Member® -› PayPal® Buttons -› Shortcode Attributes -> success[/hilite]

Also, will this code work in a disabled registration? Meaning ONLY for paid members of level 1 access.

Yes. See my earlier reply: http://www.s2member.com/forums/topic/create-profile-after-payment-members-only/#post-49047

It’d really be quick and helpful for you to just do a few test purchases for 1 cent, and see with your own experience how it all works.

Posted: Friday May 3rd, 2013 at 9:17 pm #49172
concepts 123
Username: mdtvip

I did a test with the code you gave above……..the “wp-login.php?action=register” redirect comes up as disabled and am unable to register. I do not want to have open registration. I would like to have the redirect come to this page for a level 1 access paid member to make their profile right after payment to the “wp-login.php?action=register” page.

Is there something I am overlooking?

Posted: Friday May 3rd, 2013 at 10:23 pm #49174

I don’t know. I just tested this in my installation and it worked as I described it. I have Open Registrations disabled, tried to register from another browser and wasn’t allowed, added the success attribute with the full URL to the registration page in the button shortcode, logged out of my admin account, did the test purchase and was taken to the registration page, which was now open to me because I just paid.

Review the steps you took and make sure everything’s in order to test a purchase again.

Posted: Friday May 3rd, 2013 at 10:48 pm #49175
concepts 123
Username: mdtvip

Still having the same problem……..when payment is made and sent to the registration page, the message “User registration is currently not allowed” shows up and cannot login or make a profile. Here is my flow…

— Made a button in Paypal Button section wth the following code….

[s2Member-PayPal-Button level="1" ccaps="" desc="Membership" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.mdtvip.com" ta="0.01" tp="30" tt="D" ra="0.01" rp="1" rt="M" rr="1" rrt="" rra="1" image="http://www.mdtvip.com/wp-content/uploads/2010/09/JoinToday.png" output="button" success="http://www.mdtvip.com/wp-login.php?action=register" /]

— Open registration is disabled under “general options”

Posted: Friday May 3rd, 2013 at 10:55 pm #49176

Okay. Please enable logging so we can see if there are any errors with the transaction. [hilite path]Dashboard -› s2Member® -› Log Files (Debug) -› Logging Configuration[/hilite]

Could you send me your site’s info so I test this to see what may be wrong? Please include the name of the page where the test button is, too. Let me know here once you sent it so I look for it. Thanks. s2Member® » Private Contact Form

Posted: Friday May 3rd, 2013 at 11:15 pm #49179

Well, I was waiting for your reply here letting me know that you sent the email, but I happened to see the email come in while I was looking for another one.

You didn’t include any login info, so I couldn’t check the configuration or the logs.

I did see the link to the test page, and it doesn’t have a PayPal button with the shortcode that you posted above, it has a pro-form.

The pro-form is not being displayed correctly, so I’m guessing the theme or another plugin is conflicting. You can try these to solve that: Knowledge Base » Common Troubleshooting Tips

Posted: Saturday May 4th, 2013 at 12:06 am #49184
concepts 123
Username: mdtvip

I sent you the ftp info earlier……..did you receive it? I sent two emails to you

Posted: Tuesday May 7th, 2013 at 12:21 am #49340

Thanks, found it. I’m taking a look now…


Okay, I did three differnt test purchases and this is what the paypal-rtn log says:

0 => ‘No Return-Data. Customer MUST wait for Email Confirmation.’,
1 => ‘Note. This can sometimes happen when/if you are offering an Initial/Trial Period. There are times when a Payment Gateway will NOT supply s2Member with any data immediately after checkout. When/if this happens, s2Member must process the transaction via IPN only (i.e. behind-the-scene), and the Customer must wait for Email Confirmation in these cases.’,

3 => ‘Redirecting Customer to a custom URL: http://www.mdtvip.com/wp-login.php?action=register.’,

Since there was no return data, the s2Member cookie was not set, so he wouldn’t be allowed to register yet, so he gets the error message when taken to the registration page.

I also don’t see anything updated in your paypal-ipn log or receive the signup confirmation email after a while, so I’m wondering if you set that up correctly in the integration. Could you verify it? [hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration[/hilite]

I just looked at your s2Member -> PayPal Options page and, I can’t say if the credentials you entered are correct because I don’t know them, but I can tell that the PDT Token is missing. Could you fix that? [hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® PDT Integration[/hilite]

Also, as I mentioned before, you have a JS problem with the pro-form, so it’d be good if you test for conflicts in the theme and plugins. Knowledge Base » Common Troubleshooting Tips

Posted: Tuesday May 7th, 2013 at 1:32 am #49343
concepts 123
Username: mdtvip

My notification url in the Paypal account is —- “http://www.mdtmotors.com/*******” —- and not mdtvip.com……..does this have to be mdtvip.com for it to work?

Posted: Tuesday May 7th, 2013 at 1:50 am #49344

If you don’t have PayPal Pro it’s not a problem, because the IPN URL is set by the transaction and not the setting in PayPal. If you have PayPal Pro, though, you need to have the correct URL in the PayPal setting. Please see the documentation here: [hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration -> More info[/hilite]

Posted: Tuesday May 7th, 2013 at 1:57 am #49346
concepts 123
Username: mdtvip

I updated the PDT and IPN settings…….could you do a test to see if it is all setup correctly? Thanks for the effort, your support has been great!

Posted: Tuesday May 7th, 2013 at 2:38 am #49352

I can’t right now, so I’ll check this tomorrow, but in the mean time you can do a test purchase yourself and see how it goes. :)

Posted: Tuesday May 7th, 2013 at 3:43 am #49357
concepts 123
Username: mdtvip

I did a test one and it is working on my end. Thanks for all the effort. You guys are great. God bless.

Posted: Thursday May 9th, 2013 at 12:47 pm #49597

Excellent! Thanks for the update. :)

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