PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Not Returning From Paypal to Registration Page

s2Member Plugin. A Membership plugin for WordPress®.

Not Returning From Paypal to Registration Page

Postby cspowers » April 11th, 2011, 7:20 am

Greetings,
I'm doing working on integrating S2Member into my WP site. I'm on WP3.1.1 and S2Member 3.5.8 the free version.

On the paypal side I am using Website payment standard. But I have also signed up for the optional service that doesn't require users to have a paypal account.

Last night I tried a test run of the registration for one of my levels. I generated the button using the S2 pages and inserted the short code into my member options page.

I started a fresh browser and went to the site. No user logged in. Went to the member page and clicked the button. It took me to paypal and everything looked correct on the form at paypal. I followed the instructions to use a credit card instead of my paypal account. Paypal seemed to process everything just fine.

But at the very end when it transferred me back to the web site, it took me to the home page instead of the registration page. I expected it to take me to the registration page and let me create a username, etc.

I _did_ get an email with a link to go complete my registration. (After I dug it out of my spam folder, but that's a different story!)

When I clicked the link, it took me to the registration page just fine. I was able to complete the registration just fine including the email verification step.

In the end, the test user was able to create the account. So in that sense everything worked. But like I said, I expected the user to get transferred back to the registration page.

I had logging turned on and I've attacked the log entries from the two files below. I don't follow the detailes of these entries. But I can see text in them that effectively say, " I didn't get what I need from paypal, sending the user an email."

Anyway, my question is, does it appear that I have something configured wrong that is preventing the redirect back to the registration page from paypal? Or is there something due to the nature of this transaction (i.e. paying by CC rather than paypal) that is causing this behavior ? Or is this just the way it works?

I'm trying to understand this so I can write appropriate instructions for the end users.

Thanks,
Calvin

Code: Select all
paypal-rtn.log

www.doityourselfcitizen.com/?s2member_paypal_return=1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
array (
  's2member_log' =>
  array (
    0 => 'No Return-Data from PayPal速. Customer must wait for Email Confirmation.',
    1 => 'Redirecting Customer to the Home Page.',
  ),
)

paypal-ipn.log

www.doityourselfcitizen.com/?s2member_paypal_notify=1
User-Agent:
array (
  'txn_type' => 'subscr_signup',
  'subscr_id' => 'I-BF6LE6XS8S7S',
  'last_name' => 'Powers',
  'residence_country' => 'US',
  'mc_currency' => 'USD',
  'item_name' => 'Citizen Level Access / 1 year free trial then $1/day',
  'amount1' => '0.00',
  'business' => 'calvin@taprootmedia.com',
  'amount3' => '1.00',
  'recurring' => '1.00',
  'verify_sign' => 'A6nl5nB1RQ.S84ZiUR2-jk6rre-4AAgP4-2027v7m.Pf9jbYAy5UXQWv',
  'payer_status' => 'unverified',
  'payer_email' => 'calvin@cspowers.com',
  'first_name' => 'Calvin',
  'receiver_email' => 'calvin@taprootmedia.com',
  'payer_id' => 'MEBF33YFF7NVN',
  'reattempt' => '1',
  'item_number' => '1',
  'subscr_date' => '19:24:10 Apr 10, 2011 PDT',
  'custom' => 'www.doityourselfcitizen.com',
  'charset' => 'windows-1252',
  'notify_version' => '3.1',
  'period1' => '1 Y',
  'mc_amount1' => '0.00',
  'period3' => '1 D',
  'mc_amount3' => '1.00',
  's2member_log' =>
  array (
    0 => 'IPN received on: Mon Apr 11, 2011 2:24:18 am UTC',
    1 => 's2Member POST vars verified through a POST back to PayPal速.',
    2 => 's2Member originating domain ( _SERVER[HTTP_HOST] ) validated.',
    3 => 's2Member txn_type identified as (web_accept|subscr_signup).',
    4 => 's2Member txn_type identified as (web_accept|subscr_signup) w/o update vars.',
    5 => 'Signup Confirmation Email sent to: "Calvin Powers" <calvin@cspowers.com>.',
    6 => 'Storing IPN signup vars into a Transient Queue. These will be processed on registration.',
  ),
  'subscr_gateway' => 'paypal',
  'eotper' => NULL,
  'ccaps' => NULL,
  'level' => '1',
  'initial_term' => '1 Y',
  'initial' => '0.00',
  'regular' => '1.00',
  'regular_term' => '1 D',
)
User avatar
cspowers
Registered User
Registered User
 
Posts: 13
Joined: April 10, 2011

Re: Not Returning From Paypal to Registration Page

Postby Cristián Lávaque » April 12th, 2011, 1:36 am

Hi Calvin. :)

I understand your problem. Could you please tell me how you set up PayPal with s2Member?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Not Returning From Paypal to Registration Page

Postby cspowers » April 12th, 2011, 6:35 am

Cristián,

I tried the registration process a second time yesterday with the same scenario. No user logged in, then clicked the s2 registration button. It took me to paypal and I paid without using a pay pal account (credit card only).

When paypal transferred me back to the site, I received a pop up message to check my email for a registration link. I don't remember seeing this the first time I tried it. BUT I a willing to believe I just missed it or forgot about it. I doubt it's a bug. The email was delivered just fine and the rest of activation process went smoothly.

So I don't see anything obviously wrong at this point. I can live with the existing behavior. I just need to document it for my end users. However, if there is any way to take the end user directly to the registration page after returning from paypal in this scenario, it would simplify the end user experience.

I am curious if I will see the same behavior if I use a pay pal account for the payment instead of using credit card only. I will try that later today.

To answer your question, on the paypal side, I have the website payments standard process. Normally website payments standard requires that the purchaser have a paypal account. But they have an additional optional service add-on which removes the requirement to have a paypal account, which I have signed up for.

In my papal profile under "Auto Return for Wesite Payments" I have "on" selected and the following URL in the Return URL field:
http://www.doityourselfcitizen.com/?s2m ... l_return=1

I also have Payment Data Transfer turned on and the identity token set, which I got from the S2 PayPal Member Options -> PayPal PDT Auto Return Integration.

I have "block non-encrypted web site payment turned "off" on the PayPal side.

On my PayPal Profile, Instant Payment Notification, I have "Message Delivery" enabled and the Notification URL set to
http://www.doityourselfcitizen.com/?s2m ... l_notify=1
User avatar
cspowers
Registered User
Registered User
 
Posts: 13
Joined: April 10, 2011

Re: Not Returning From Paypal to Registration Page

Postby Jason Caldwell » April 12th, 2011, 8:22 pm

Are you offering a free trial?
Please see this thread: viewtopic.php?f=4&t=1602&p=5713#p5713
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Not Returning From Paypal to Registration Page

Postby cspowers » April 12th, 2011, 9:52 pm

that's it Jason. I am offering a free trial period and what I see is exactly what that linked topic described.

Slightly annoying, but it's fine. I just wanted to make sure the behavior I was seeing was not an indicator that I had something configured wrong.
User avatar
cspowers
Registered User
Registered User
 
Posts: 13
Joined: April 10, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron