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.

Paypal Express – combine registration and pay

Home Forums Community Forum Paypal Express – combine registration and pay

This topic contains 9 replies, has 2 voices. Last updated by  Bruce 4 years ago.

Topic Author Topic
Posted: Tuesday Dec 18th, 2012 at 7:20 am #34900
Alex Read
Username: lab41

In reference to this post , I’m trying to combine registration and payment using Paypal express only. Everything works except when completed, the user’s role is not elevated (they are registered as level 0 free subscriber). Here is my shortcode:

[s2Member-Pro-PayPal-Form level="2" ccaps="" desc="$2.63 USD / One Time ( for 1 month access, non-recurring )" ps="SALearners" lc="" cc="USD" dg="0" ns="1" custom="salearnerslicense.co.za" ta="0" tp="0" tt="D" ra="0.1" rp="1" rt="M" rr="BN" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" success="/thank-you-purchase/"/]

Thanks

List Of Topic Replies

Viewing 9 replies - 1 through 9 (of 9 total)
Author Replies
Author Replies
Posted: Wednesday Dec 19th, 2012 at 2:37 am #34998
Bruce
Username: Bruce
Staff Member

Hi Alex,

Things such as this are usually caused by an improper setup of PayPal IPN. Can you double-check that everything is set up as stated in Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration?

Posted: Saturday Dec 22nd, 2012 at 10:46 am #35331
Alex Read
Username: lab41

No, the IPN url is set in my Paypal account. Here is the IPN log:

PHP v5.3.19 :: WordPress® v114 :: s2Member® v121213 :: s2Member® Pro v121213
Memory 57.76 MB :: Real Memory 58.75 MB :: Peak Memory 58.11 MB :: Real Peak Memory 58.75 MB
salearnerslicense.co.za/?s2member_paypal_notify=1&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=pro-emails&s2member_paypal_proxy_verification=e6faea3ef6b120a043c76b59f2da4997&s2member_paypal_proxy_return_url=%2Fthank-you-purchase%2F
User-Agent: WordPress/365; http://salearnerslicense.co.za
array (
  'txn_type' => 'web_accept',
  'txn_id' => '4FB72799UP171363X',
  'custom' => 'salearnerslicense.co.za',
  'mc_gross' => '0.10',
  'mc_currency' => 'USD',
  'tax' => '0.00',
  'payer_email' => 'blindlemonsam+65@gmail.com',
  'first_name' => 'SamcheckMCAPI',
  'last_name' => 'Moore',
  'option_name1' => 'Originating Domain',
  'option_selection1' => 'salearnerslicense.co.za',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '141.101.98.191',
  'item_name' => '$2.63 USD / One Time ( for 1 month access, non-recurring )',
  'item_number' => '2::1 M',
  'proxy_verified' => 'paypal',
  's2member_log' => 
  array (
    0 => 'IPN received on: Sat Dec 22, 2012 3:17:03 pm UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    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: "SamcheckMCAPI Moore" <blindlemonsam+65@gmail.com>.',
    6 => 'Storing Signup Tracking Codes into a Transient Queue. These will be processed on-site.',
    7 => 'Subscr. Return ( `modification=0` ), a Proxy Return URL is ready.',
    8 => 'User exists. Handling `payment` for Subscription via ( `web_accept` ).',
    9 => 'Payment Notification Emails have been processed.',
    10 => 'Storing IPN signup vars now. These are associated with a User\'s account record; for future reference.',
  ),
  'subscr_gateway' => 'paypal',
  'subscr_id' => '4FB72799UP171363X',
  'eotper' => '1 M',
  'ccaps' => '',
  'level' => '2',
  'ip' => '141.101.98.191',
  'period1' => '0 D',
  'mc_amount1' => '0.00',
  'period3' => '1 M',
  'mc_amount3' => '0.10',
  'initial_term' => '0 D',
  'initial' => '0.10',
  'regular' => '0.10',
  'regular_term' => '1 M',
  'recurring' => '0',
  's2member_paypal_proxy_return_url' => '/thank-you-purchase/',
  's2member_paypal_proxy' => 'paypal',
  's2member_paypal_proxy_use' => 'pro-emails',
  's2member_paypal_proxy_verification' => 'e6faea3ef6b120a043c76b59f2da4997',
)
Posted: Sunday Dec 23rd, 2012 at 2:52 am #35403
Bruce
Username: Bruce
Staff Member

Hi Alex,

Thanks for the logs. However, we’ll need to see your PDT logs to know what went wrong. Would you mind posting those?

Posted: Friday Dec 28th, 2012 at 6:36 am #35601
Alex Read
Username: lab41

Not sure where to find the PDT logs. Are they paypal-rtn or paypal-api?

Posted: Saturday Dec 29th, 2012 at 5:27 am #35701
Bruce
Username: Bruce
Staff Member

Alex,

Not sure where to find the PDT logs. Are they paypal-rtn or paypal-api?

paypal-rtn

Posted: Saturday Dec 29th, 2012 at 11:06 am #35715
Alex Read
Username: lab41

Just made a test payment/registration. Here’s the last 3 from paypal-rtn:

PHP v5.3.18 :: WordPress® v3.4.2 :: s2Member® v121023 :: s2Member® Pro v121023
Memory 40.01 MB :: Real Memory 40.25 MB :: Peak Memory 40.24 MB :: Real Peak Memory 40.50 MB
salearnerslicense.co.za/?s2member_paypal_return=1
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
array (
  'subscr_gateway' => 'paypal',
  's2member_log' => 
  array (
    0 => 'No Return-Data. Customer must wait for Email Confirmation.',
    1 => 'Redirecting Customer to the Home Page. Customer must wait for Email Confirmation.',
    2 => 'Note. This can sometimes happen when/if you are offering a free 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 => 'array (
  \'s2member_paypal_return\' => \'1\',
)',
  ),
)

PHP v5.3.18 :: WordPress® v3.4.2 :: s2Member® v121023 :: s2Member® Pro v121023
Memory 40.39 MB :: Real Memory 40.75 MB :: Peak Memory 40.71 MB :: Real Peak Memory 40.75 MB
salearnerslicense.co.za/?s2member_paypal_return=1
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
array (
  'subscr_gateway' => 'paypal',
  's2member_log' => 
  array (
    0 => 'No Return-Data. Customer must wait for Email Confirmation.',
    1 => 'Redirecting Customer to the Home Page. Customer must wait for Email Confirmation.',
    2 => 'Note. This can sometimes happen when/if you are offering a free 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 => 'array (
  \'s2member_paypal_return\' => \'1\',
)',
  ),
)

PHP v5.3.19 :: WordPress® v162 :: s2Member® v121213 :: s2Member® Pro v121213
Memory 52.22 MB :: Real Memory 52.75 MB :: Peak Memory 52.45 MB :: Real Peak Memory 52.75 MB
salearnerslicense.co.za/?s2member_paypal_return=1
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
array (
  'subscr_gateway' => 'paypal',
  's2member_log' => 
  array (
    0 => 'No Return-Data. Customer must wait for Email Confirmation.',
    1 => 'Redirecting Customer to the Home Page. Customer must wait for Email Confirmation.',
    2 => 'Note. This can sometimes happen when/if you are offering a free 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 => 'array (
  \'s2member_paypal_return\' => \'1\',
)',
  ),
)

Thanks,

Posted: Saturday Dec 29th, 2012 at 4:41 pm #35751
Bruce
Username: Bruce
Staff Member

Hi Alex,

The first thing I notice is that s2Member is not actually getting any data from PayPal’s PDT. Are you getting emails from s2Member when you do these tests? You should get an email that will upgrade you.

Posted: Monday Dec 31st, 2012 at 11:43 am #35852
Alex Read
Username: lab41

No upgrade email. Two emails, 1 with username and password and the other like this:

Thanks Sam66! Your membership has been approved.

$2.63 USD / One Time ( for 1 month access, non-recurring )

Subscr. ID: 3UX94994VD5181738
Charges today: $0.10
Recurring charges: $0 / non-recurring

Your Username/Password will arrive shortly, in a separate email. If you have any trouble, please feel free to contact us.

Best Regards,
SA Learners License

The form results in a successful registration and also provides a “Paid Subscr. ID” to confirm purchase but does not elevate the role of the user from “Subscriber”.

Posted: Wednesday Jan 2nd, 2013 at 8:53 pm #36037
Bruce
Username: Bruce
Staff Member

Alex,

It looks like the problem is with your PayPal setup. Make sure you have Payment Data Transfer is set to ON, just having Auto Return on with cause s2Member not to recieve the needed info. The URL that PayPal is sending users to your site (salearnerslicense.co.za/?s2member_paypal_return=1) has none of the variables that should be appended to the end, which is causing the issue. This isn’t something that’s available to change from with s2Member and you must do it within PayPal.

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