ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to tie together new user registration with a membership purchase via PayPal

June 29, 2009 9:09pm

Subscribe [3]
  • #1 / Jun 29, 2009 9:09pm

    Charfish Charlie

    15 posts

    Hello all!

    What I’m trying to accomplish is to allow new users to register for access to a members-only area of the site after purchasing a membership from the simple commerce mod.

    I’ve already got a user reg up and working and tested. But this obviously gives new users access to members-only stuff before they actually make a PayPal purchase.

    So…is there a way for me to tie together the new user registration WHILE the membership purchase is happening. Or do the registration first and then…what? Confused a bit, as you can see.

    Thanks!

  • #2 / Jun 29, 2009 9:37pm

    Greg Aker

    6022 posts

    Greetings!

    You can have the users sign up and be in the members group.  Then create a new user group for paid members, and when they make the simple commerce purchase, you can move them to the paid member group.

    http://expressionengine.com/docs/modules/simple_commerce/sc_cp_items.html

    would that work for you?

    =greg

  • #3 / Jun 29, 2009 9:47pm

    Charfish Charlie

    15 posts

    Greg! You again!

    Blimey, this sounds like a great plan. EE does stuff I had no idea it does. That’s what happens when you accept a job with the deadline of “do it now.”

    I’m gonna try this out, man. Thanks a million! These forums are insane!

  • #4 / Jun 29, 2009 10:03pm

    Greg Aker

    6022 posts

    Cool, give it a shot and let us know what you find back in the thread.

    Thanks!

    -greg

  • #5 / Jun 29, 2009 10:08pm

    Charfish Charlie

    15 posts

    Alright we are soooo close.

    Got the membership reg working. That brings the new logged in user to the products page where they can purchase a membership. All good. I’ve denoted that the purchase of that membership product puts the person into the “paid subscriber” group.

    Next step, when the purchase happens, is where the problem seems to come in. EE and PayPal don’t seem to be communicating that the sale actually took place. When the newly registered user makes the purchase of the membership and logs back in to EE, he’s not a “paid subscriber” but still a regular member.

    Getting there! I can feel it!

  • #6 / Jun 29, 2009 10:17pm

    Greg Aker

    6022 posts

    okay few things.

    1.)  Are you in paypal sandbox mode?

    2.)  Is your buyer account “Verified” in PayPal?

    3.)  Are you using the exact same email that’s verified with PayPal in EE?  Remember, they are case sensitive.

    -greg

  • #7 / Jun 29, 2009 10:22pm

    Charfish Charlie

    15 posts

    Yes, sandbox mode. Does that make a difference? I’ll verify the other info right now.

  • #8 / Jun 29, 2009 10:24pm

    Greg Aker

    6022 posts

  • #9 / Jun 29, 2009 10:25pm

    Charfish Charlie

    15 posts

    Yup, debug is set to TRUE.

  • #10 / Jun 29, 2009 10:40pm

    Greg Aker

    6022 posts

    hum.  Your sandbox buyer & seller are verified, you have entered EE-generated URL for PayPal to ping into PayPal, and your email address from paypal is put into EE exactly the same as it was given to you in paypal?  Emails are case sensitive.

    -greg

  • #11 / Jun 29, 2009 10:56pm

    Charfish Charlie

    15 posts

    I’m not 100% sure about the EE-generated URL. My code on my product page is like this:

    
    
    

    Look good?

              {/exp:weblog:entries}

  • #12 / Jun 29, 2009 11:06pm

    Charfish Charlie

    15 posts

    I took my PayPal off sandbox mode and tried again just using a .01 purchase and no luck. I logged in as a new user, used that exact info as my PayPal checkout info as well. That help?

  • #13 / Jun 30, 2009 2:09am

    John Henry Donovan

    12339 posts

    Charfish Charlie,

    Are you testing with the user in a different environment to the one you are logged in as a SuperAdmin ie. a different browser?

    Does the purchase show up on your Edit page

    Default Site > Modules > Simple Commerce > Edit Items

    Did you receive any notification email as an admin?

    What version and build of EE are you on?

  • #14 / Dec 02, 2009 10:21pm

    pab514

    181 posts

    Going through the same issue,

    user can register but once they purchase a subscription they don’t get moved, and the purchase doesn’t get registered on the ee side.

  • #15 / Dec 03, 2009 2:05am

    John Henry Donovan

    12339 posts

    pab514,

    In addtion to answering the questions below can you tell us what verison and build of EE you are using?

    Also are you using nay extensions

    1.)  Are you in paypal sandbox mode?

    2.)  Is your buyer account “Verified” in PayPal?

    3.)  Are you using the exact same email that’s verified with PayPal in EE?  Remember, they are case sensitive.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases