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.

success attribute not working

Home Forums Community Forum success attribute not working

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

Topic Author Topic
Posted: Thursday Jun 7th, 2012 at 6:26 am #15775

Hi all, my “success=” tag in a Paypal Pro form is not redirecting … just brings me to a blank page after signup.

Here is my form code:

[s2Member-Pro-PayPal-Form level="1" ccaps="" desc=" " ps="paypal" lc="" cc="USD" dg="0" ns="0" custom="" success="" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="Y" rr="BN" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]

Registration works, but then I get returned to the original signup page ( however the page content does not display … strange.

Thanks for your help!

List Of Topic Replies

Viewing 11 replies - 1 through 11 (of 11 total)
Author Replies
Author Replies
Posted: Thursday Jun 7th, 2012 at 10:53 am #15795
Raam Dev
Username: Raam
Staff Member

Hi Frank,

Have you double-checked your PDT integration (Dashboard -› s2Member® -› PayPal® Options -› PayPal® PDT Integration) and your IPN integration (Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration)?

If both of those are definitely correct, please enable logging (Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging), conduct another test, and then copy/paste the log entries for that transaction from the log files in plugins/s2member-logs/ for us to take a look at. (Please X-out any private information, such as email addresses, before posting.)

Posted: Thursday Jun 7th, 2012 at 4:44 pm #15840

Thanks Raam, yeah, I have the PDT and IPN working fine. And at one point the success tag was working too, but not anymore. Here are the transactions from the log (and thanks again):

PHP v5.3.13 :: WordPress® v3.3.1 :: s2Member® v120309 :: s2Member® Pro v120309
Memory 32.22 MB :: Real Memory 32.50 MB :: Peak Memory 32.30 MB :: Real Peak Memory 32.50 MB
array (
‘mc_gross’ => ‘0.01’,
‘protection_eligibility’ => ‘Ineligible’,
‘item_number1’ => ‘1::1 Y’,
‘payer_id’ => ‘FK94M4KALYYCW’,
‘tax’ => ‘0.00’,
‘payment_date’ => ’03:18:09 Jun 07, 2012 PDT’,
‘payment_status’ => ‘Completed’,
‘charset’ => ‘windows-1252’,
‘mc_shipping’ => ‘0.00’,
‘mc_handling’ => ‘0.00’,
‘first_name’ => ‘test’,
‘mc_fee’ => ‘0.01’,
‘notify_version’ => ‘3.4’,
‘custom’ => ‘’,
‘payer_status’ => ‘unverified’,
‘business’ => ‘’,
‘num_cart_items’ => ‘1’,
‘mc_handling1’ => ‘0.00’,
‘verify_sign’ => ‘A1a2BobDwLW9pTpQ0FuKmC1lfCN.AZcvmdBq9TVZQDmTI-9.jleWvWUx’,
‘payer_email’ => ‘’,
‘mc_shipping1’ => ‘0.00’,
‘tax1’ => ‘0.00’,
‘txn_id’ => ’76A313868K317600Y’,
‘payment_type’ => ‘instant’,
‘last_name’ => ‘test’,
‘item_name1’ => ”,
‘receiver_email’ => ‘’,
‘payment_fee’ => ‘0.01’,
‘quantity1’ => ‘1’,
‘receiver_id’ => ‘JSYGHLVKFM7W6’,
‘txn_type’ => ‘cart’,
‘mc_gross_1’ => ‘0.01’,
‘mc_currency’ => ‘USD’,
‘residence_country’ => ‘US’,
‘receipt_id’ => ‘2824-3400-9510-7363’,
‘transaction_subject’ => ”,
‘payment_gross’ => ‘0.01’,
‘ipn_track_id’ => ’62c4c8ee55eee’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Thu Jun 7, 2012 10:18:22 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 ( `cart` ).’,
4 => ‘The `txn_type` does not require any action on the part of s2Member.’,
5 => ‘s2Member Pro handles Cart events on-site, with an IPN proxy.’,
‘subscr_gateway’ => ‘paypal’,

PHP v5.3.13 :: WordPress® v3.3.1 :: s2Member® v120309 :: s2Member® Pro v120309
Memory 30.20 MB :: Real Memory 30.75 MB :: Peak Memory 30.30 MB :: Real Peak Memory 30.75 MB
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0
——– Input vars: ( Thu Jun 7, 2012 10:18:06 am UTC ) ——–
array (
‘METHOD’ => ‘DoDirectPayment’,
‘EMAIL’ => ‘’,
‘FIRSTNAME’ => ‘test’,
‘LASTNAME’ => ‘test’,
‘IPADDRESS’ => ‘’,
‘DESC’ => ‘ ‘,
‘CUSTOM’ => ‘’,
‘ITEMAMT’ => ‘0.01’,
‘TAXAMT’ => ‘0.00’,
‘AMT’ => ‘0.01’,
‘L_QTY0’ => ‘1’,
‘L_NAME0’ => ‘ ‘,
‘L_NUMBER0’ => ‘1::1 Y’,
‘L_AMT0’ => ‘0.01’,
‘CREDITCARDTYPE’ => ‘MasterCard’,
‘ACCT’ => ‘************2020’,
‘EXPDATE’ => ‘112014’,
‘CVV2’ => ‘704’,
‘STREET’ => ‘154 arg’,
‘CITY’ => ‘ip’,
‘STATE’ => ‘ma’,
‘ZIP’ => ‘11111’,
‘VERSION’ => ‘71.0’,
‘USER’ => ‘’,
‘PWD’ => ’99LZCJV29MHWPM9E’,
‘SIGNATURE’ => ‘AXKRpr7X1GhSAAZ6THsbHXy8dUrrArNLSvKHeI9TF0yDlcRcSmyS5777’,
——– Output string/vars: ( Thu Jun 7, 2012 10:18:09 am UTC ) ——–
array (
‘TIMESTAMP’ => ‘2012-06-07T10:18:09Z’,
‘CORRELATIONID’ => ’62c4c8ee55eee’,
‘ACK’ => ‘Success’,
‘VERSION’ => ‘71.0’,
‘BUILD’ => ‘2945183’,
‘AMT’ => ‘0.01’,
‘AVSCODE’ => ‘A’,
‘CVV2MATCH’ => ‘M’,
‘TRANSACTIONID’ => ’76A313868K317600Y’,

Posted: Thursday Jun 7th, 2012 at 4:45 pm #15841

PS. Raam, I’m also not getting the payment receipt email from Paypal (getting the wordpress email, but not the receipt email).

Posted: Friday Jun 8th, 2012 at 5:41 pm #15967

Hi Frank.

You could update your s2Member to the latest release of the framework and the pro add-on, just to rule out the possibility of something that was fixed in the latest releases.

Are you making sure you’re not logged in to your admin account when you test the purchase? Just checking.

Have you added any hacks in your mu-plugins? /wp-content/mu-plugins/

Have you tested deactivating other plugins one by one and testing after each to make sure this problem isn’t something caused by a conflict?

Posted: Friday Jun 8th, 2012 at 6:52 pm #15978

Hi Christian, thanks. I did have the auto-login upon success hack in there, and when I removed it things seemed to work. Can you post the latest version of that hack and I can try again? Thanks.

Also, I am still not getting the payment receipt email from Paypal … any thoughts?

Posted: Saturday Jun 9th, 2012 at 5:18 am #16048

I see. You mean the autologin after registration, right? I don’t know which version you had. You can post it here inside code tags. I think I haven’t touched that hack in a year, really. What improved when you removed it?

If you’re getting paid on-site, and not on PayPal, I don’t know that PayPal would send an email. I’ll ask Jason.

Does the s2Member confirmation email get sent? [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Signup Confirmation Email[/hilite]

Posted: Saturday Jun 9th, 2012 at 6:41 am #16057

Jason confirmed that PayPal would not email a customer that paid you on your site.

Not unless they went through PP express checkout, so no.

If they entered a credit card on-site, they will only get an email from s2Member (i.e. the Signup Confirmation Email for Pro Forms).

Posted: Saturday Jun 9th, 2012 at 6:57 am #16060

Thanks, but I’m a bit confused. In PayPal Options, there’s a “Signup Confirmation Email (Pro Form)” section that reads “This email is sent to new Customers after they successfully complete a PayPal® “Pro Form” submission on your site. The primary purpose of this email, is to provide the Customer with a receipt …” Then it lists some transaction-related fields (amount, payment type, etc.)

Which is what I’m trying to do … get them a receipt for their order. Can I use those same fields in my welcome email?

Thanks. Oh, and here’s that auto-login hack code I was using:

add_action('ws_plugin__s2member_during_configure_user_registration', 's2_auto_login_after_registration');
function s2_auto_login_after_registration($vars = array()) {
    if (!is_admin() && $vars['processed'] === 'yes') {
        wp_new_user_notification($vars['user_id'], $vars['pass']);
        wp_set_auth_cookie($vars['user_id'], false, is_ssl());
add_filter('ws_plugin__s2member_mailchimp_merge_array', 'mailchimp_merge', 10, 2);
function mailchimp_merge($merge, $vars)
	$cfields = get_user_option('wp_s2member_custom_fields', $vars['user_id']);

	return array_merge($merge, array('TITLE' => $cfields['title'], 'ZIP' => $cfields['zip']));
Posted: Tuesday Jun 12th, 2012 at 1:23 am #16207

I’m very sorry, Frank. That post about PayPal not emailing when getting paid on site, was meant for another thread where the person was asking about getting payments on the site and have PayPal email the customer. Sorry for posting here by mistake. :/

Your auto-login after registration hack is missing the redirection line. Was it working without it?

Regarding the confirmation email, did you test adding your own email address to the list of recipients? Would like to know if you get it while the customer doesn’t.

Are other emails from WordPress going out? This article may help: Knowledge Base » Troubleshooting Email Delivery Problems

Posted: Tuesday Jun 12th, 2012 at 9:09 am #16244

Thanks Cristián, all is working well now. Getting two copies of each email for some reason (both the test subscriber and me as the admin getting two copies of the welcome email and paypal pro receipt) … but two is better than none ;)

Thanks for all your help!

Posted: Tuesday Jun 12th, 2012 at 11:36 pm #16332

lol, right, it is better! :P

It’s still odd, and I’m curious about what’s causing that behavior. Maybe another plugin is messing up with the wp_mail in WordPress? You’d need to deactivate the other plugins and test to confirm it.

Anyway, I’m glad that you now get the emails. Thanks for the update. :)

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