Page 1 of 1

CCBill problem - Post-purchase registration e-mail not sent

PostPosted: September 6th, 2011, 7:33 pm
by n4v4rr0
Hey, can someone suggest what's going wrong here? I've seen similar issues raised in the forum, but nothing helps....

We're using CCBill...and everything worked great for about a week! There are about a dozen successfully processed new subscribers. As of a couple days ago, we got a notice from CCBill that customers were complaining that they couldn't log in, because they never received their registration e-mail.

So far, I've checked:
-IPN/Post URLs
-PHP Mail is working fine
-logs are turned on (but I just did that now, so there's nothing there)
-Other CCBill settings appear fine

The ONLY thing I can think of that has changed since the last successful subscriber: we'd set up Mailchimp integration, which also was working fine...until they cancelled the account. (Umm...yes, I should have realized they don't allow adult sites in their TOS.)

Would Mailchimp integration breaking break everything? I've already removed the Mailchimp settings from s2Member, but that hasn't fixed anything.

I'm truly at a loss...can anyone suggest anything?? Thanks!!

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 7th, 2011, 3:19 am
by Cristián Lávaque
Hi Navarro.

Well, I'd ask you for the log entries with private info x'ed out. Could you post the entries from the logs as soon as you have them?

Have you installed any plugin, or updated any, recently?

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 7th, 2011, 11:38 am
by n4v4rr0
Thanks Cristian,
No, I don't think any plugins were updated.... I used CCBill's fake credit card number to process a transaction...again, I get immediately the CCBill payment confirmation, but nothing back from my site enabling the user to register. Here are the logs:

ccbill-ipn.log:
Code: Select all
WordPress® v3.2.1 :: s2Member® v110815 :: s2Member® Pro v110815
Memory 25.70 MB :: Real Memory 26.00 MB :: Peak Memory 25.76 MB :: Real Peak Memory 26.00 MB
mydomain.com/?s2member_pro_ccbill_notify=1
User-Agent:
array (
  'customer_fname' => 'Test',
  'customer_lname' => 'User',
  'email' => 'test@email.com',
  'username' => '',
  'password' => '',
  'productDesc' => '',
  'price' => '$29.99 for 30 days ** $29.99 recurring every 30 days **',
  'subscription_id' => '0111250302000000243',
  'denialId' => '',
  'clientAccnum' => '943370',
  'clientSubacc' => '0000',
  'address1' => '123 main st',
  'city' => 'Littleton',
  'state' => 'AL',
  'country' => 'US',
  'phone_number' => '',
  'zipcode' => '80000',
  'start_date' => '2011-09-07 09:21:57',
  'referer' => '',
  'ccbill_referer' => '',
  'affiliate' => '',
  'reservationId' => '',
  'referringUrl' => 'http://mydomain.com/join-test/',
  'reasonForDecline' => '',
  'reasonForDeclineCode' => '',
  'formName' => '10cc',
  'cardType' => 'MASTERCARD',
  'responseDigest' => '654c91c9d65126fa2f6f0b1578d67a1b',
  's2_desc' => 'VIP Membership - $29.99/month recurring',
  's2_referencing' => '1',
  's2_customer_ip' => '67.177.199.67',
  's2_invoice' => '1',
  's2_custom' => 'mydomain.com',
  's2_p1' => '1 M',
  's2_p3' => '1 M',
  'typeId' => '0',
  'initialPrice' => '29.99',
  'initialPeriod' => '30',
  'recurringPrice' => '29.99',
  'recurringPeriod' => '30',
  'rebills' => '99',
  'initialFormattedPrice' => '$29.99',
  'recurringFormattedPrice' => '$29.99',
  'ip_address' => '67.177.199.67',
  's2member_log' =>
  array (
    0 => 'IPN received on: Wed Sep 7, 2011 4:21:58 pm UTC',
    1 => 's2Member POST vars verified with ccBill¬Æ.',
    2 => 'ccBill¬Æ transaction identified as ( `RECURRING/SUBSCRIPTION` ).',
    3 => 'IPN reformulated. Piping through s2Member\'s core/standard PayPal¬Æ processor as `txn_type` ( `subscr_signup` ).',
    4 => 'Please check PayPal¬Æ IPN logs for further processing details.',
  ),
)


ccbill-rtn.log:
Code: Select all
WordPress® v3.2.1 :: s2Member® v110815 :: s2Member® Pro v110815
Memory 25.66 MB :: Real Memory 26.00 MB :: Peak Memory 25.75 MB :: Real Peak Memory 26.00 MB
mydomain.com/?s2member_pro_ccbill_return=1
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17
array (
  's2member_log' =>
  array (
    0 => 'Return URL processed on: Wed Sep 7, 2011 4:22:16 pm UTC',
    1 => 'Piping through s2Member\'s core/standard PayPal¬Æ processor with `proxy_use` ( `ty-email` ).',
    2 => 'Please check PayPal¬Æ RTN logs for further processing details.',
    3 => 'http://mydomain.com/?s2member_pro_ccbill_return&s2member_paypal_return=1&s2member_paypal_proxy=ccbill&s2member_paypal_proxy_use=standard-emails,ty-email&s2member_paypal_proxy_verification=5106128d47e5e671f768c72416067acb',
  ),
)


Why is it mentioning PayPal?? I've never set that up, there's no info entered in PayPal Options....

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 7th, 2011, 5:02 pm
by n4v4rr0
Here are the PayPal logs that were also generated with the above test subscription:

paypal-ipn.log:
Code: Select all
WordPress® v3.2.1 :: s2Member® v110815 :: s2Member® Pro v110815
Memory 30.39 MB :: Real Memory 32.25 MB :: Peak Memory 31.52 MB :: Real Peak Memory 32.25 MB
mydomain.com/?s2member_paypal_notify=1&s2member_paypal_proxy=ccbill&s2member_paypal_proxy_use=standard-emails,subscr-signup-as-subscr-payment&s2member_paypal_proxy_verification=5106128d47e5e671f768c72416067acb
User-Agent: WordPress/3.2.1; http://mydomain.com
array (
  'txn_type' => 'subscr_signup',
  'subscr_id' => '0111250302000000243',
  'recurring' => '29.99',
  'txn_id' => '0111250302000000243',
  'custom' => 'mydomain.com',
  'period1' => '1 M',
  'period3' => '1 M',
  'mc_amount1' => '29.99',
  'mc_amount3' => '29.99',
  'mc_gross' => '29.99',
  'mc_currency' => 'USD',
  'tax' => '0.00',
  'payer_email' => 'test@email.com',
  'first_name' => 'Test',
  'last_name' => 'User',
  'option_name1' => 'Referencing Customer ID',
  'option_selection1' => '1',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '67.177.199.67',
  'item_number' => '1',
  'item_name' => 'VIP Membership - $29.99/month recurring',
  'proxy_verified' => 'ccbill',
  's2member_log' =>
  array (
    0 => 'IPN received on: Wed Sep 7, 2011 4:21:59 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/ update vars.',
    5 => 'Unable to modify Subscription. The existing User ID is associated with an Administrator. Stopping here. Otherwise, an Administrator could lose access.',
  ),
  'subscr_gateway' => 'ccbill',
  'eotper' => NULL,
  'ccaps' => NULL,
  'level' => '1',
  'ip' => '67.177.199.67',
  'initial_term' => '1 M',
  'initial' => '29.99',
  'regular' => '29.99',
  'regular_term' => '1 M',
  's2member_paypal_proxy' => 'ccbill',
  's2member_paypal_proxy_use' => 'standard-emails,subscr-signup-as-subscr-payment',
  's2member_paypal_proxy_verification' => '5106128d47e5e671f768c72416067acb',
)


paypal-rtn.log:
Code: Select all
WordPress® v3.2.1 :: s2Member® v110815 :: s2Member® Pro v110815
Memory 25.87 MB :: Real Memory 26.25 MB :: Peak Memory 26.01 MB :: Real Peak Memory 26.25 MB
mydomain.com/?s2member_pro_ccbill_return&s2member_paypal_return=1&s2member_paypal_proxy=ccbill&s2member_paypal_proxy_use=standard-emails,ty-email&s2member_paypal_proxy_verification=5106128d47e5e671f768c72416067acb
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17
array (
  'proxy_verified' => 'ccbill',
  's2member_log' =>
  array (
    0 => 'Return-Data received on: Wed Sep 7, 2011 4:22:17 pm UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 'Customer must wait for Email Confirmation `proxy_use`: ( `ty-email` ).',
    3 => 'Redirecting Customer to the Home Page. Customer must wait for Email Confirmation `proxy_use`: ( `ty-email` ).',
  ),
  'subscr_gateway' => 'ccbill',
  's2member_paypal_proxy' => 'ccbill',
  's2member_paypal_proxy_use' => 'standard-emails,ty-email',
  's2member_paypal_proxy_verification' => '5106128d47e5e671f768c72416067acb',
)

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 8th, 2011, 2:37 am
by Cristián Lávaque
Thanks.

In the paypal-ipn.log there's this line:

5 => 'Unable to modify Subscription. The existing User ID is associated with an Administrator. Stopping here. Otherwise, an Administrator could lose access.',


Try purchasing logged out of your admin account and use a different email to make sure you don't get that.

Let me know if that solves the problem. :)

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 8th, 2011, 6:49 am
by n4v4rr0
Thanks, Cristian... I tried your suggestion and tried a signup without being logged in. Still no confirmation e-mail. Here is the paypal-ipn.log:

Code: Select all
WordPress® v3.2.1 :: s2Member® v110815 :: s2Member® Pro v110815
Memory 31.33 MB :: Real Memory 32.50 MB :: Peak Memory 31.52 MB :: Real Peak Memory 32.50 MB
mydomain.com/?s2member_paypal_notify=1&s2member_paypal_proxy=ccbill&s2member_paypal_proxy_use=standard-emails,subscr-signup-as-subscr-payment&s2member_paypal_proxy_verification=5106128d47e5e671f768c72416067acb
User-Agent: WordPress/3.2.1; http://mydomain.com
array (
  'txn_type' => 'subscr_signup',
  'subscr_id' => '0111251402000000101',
  'recurring' => '29.99',
  'txn_id' => '0111251402000000101',
  'custom' => 'mydomain.com',
  'period1' => '1 M',
  'period3' => '1 M',
  'mc_amount1' => '29.99',
  'mc_amount3' => '29.99',
  'mc_gross' => '29.99',
  'mc_currency' => 'USD',
  'tax' => '0.00',
  'payer_email' => 'email@myaddress.com',
  'first_name' => 'Tester',
  'last_name' => 'Dude',
  'option_name1' => 'Originating Domain',
  'option_selection1' => 'mydomain.com',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '67.177.199.67',
  'item_number' => '1',
  'item_name' => 'VIP Membership - $29.99/month recurring',
  'proxy_verified' => 'ccbill',
  's2member_log' =>
  array (
    0 => 'IPN received on: Thu Sep 8, 2011 11:14:33 am 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: "Tester Dude" <email@myaddress.com>.',
    6 => 'Storing `payment` for Subscription via ( `subscr-signup-as-subscr-payment` ).',
    7 => 'Creating an IPN response for `subscr_payment`. This will go into a Transient Queue; and be processed during registration.',
    8 => 'Storing IPN signup vars into a Transient Queue. These will be processed on registration.',
  ),
  'subscr_gateway' => 'ccbill',
  'eotper' => NULL,
  'ccaps' => NULL,
  'level' => '1',
  'ip' => '67.177.199.67',
  'initial_term' => '1 M',
  'initial' => '29.99',
  'regular' => '29.99',
  'regular_term' => '1 M',
  's2member_paypal_proxy' => 'ccbill',
  's2member_paypal_proxy_use' => 'standard-emails,subscr-signup-as-subscr-payment',
  's2member_paypal_proxy_verification' => '5106128d47e5e671f768c72416067acb',
)

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 9th, 2011, 12:59 am
by Cristián Lávaque
Got it. Thanks for the udpate. :)

I see in the log that the email was sent:

5 => 'Signup Confirmation Email sent to: "Tester Dude" <email@myaddress.com>.',


So s2Member is sending the email, the problem would be elsewhere. Maybe your mail settings. Did you check the spam folder to see if it went there? Did it arrive after a long while perhaps?

Also, could you check these threads in case your problem is related to one of them?

viewtopic.php?f=4&t=10143&p=20836#p21251
viewtopic.php?f=4&t=6235&p=13691#p13733

I hope this helps.

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 17th, 2011, 11:01 am
by n4v4rr0
Well, none of those solutions seemed to apply.....but I fixed it. And I still have no idea what the problem was...

Here's what I did: I turned off all the plugins, and it worked. Then I systematically turned back on plugins, to narrow down which one was causing the problem.

Now ALL plugins are turned back on, and it works fine.

??????

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 18th, 2011, 2:13 am
by Cristián Lávaque
lol, who knows what was the problem then. Did you update any of them?

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 18th, 2011, 11:18 am
by n4v4rr0
Nope, I didn't change anything...just turned on each plugin, waiting to see which one would break s2Member, and now they are all on. I'm glad it works now, but I'm worried it will happen again.

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 25th, 2011, 12:45 am
by Cristián Lávaque
Got it. Let us know if it happens again, although I hope it won't. :)

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 25th, 2011, 11:10 am
by n4v4rr0
Okay, so now I'm back to my original suspicion....which is, to repeat, the ONLY thing in my setup that changed at the time of the problem: Mailchimp cancelled my account.

Everything is still working fine, btw....and I don't expect anyone to help fix a problem that's not happening. However, for future readers of this forum...do you have any insight into my original question? Is s2Member integrated with Mailchimp in such a way that if my MC account were suddenly inaccessible or invalid, that s2Member would lose the ability to send its own e-mails, for example the introductory registration e-mail?

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: September 27th, 2011, 11:09 pm
by Cristián Lávaque
Interesting. Maybe the MailChimp part is ran before the purchase confirmation email, so if it fails, the other one doesn't happen. I'll notify Jason about this in case he can improve the behavior. Thanks for the update!

Re: CCBill problem - Post-purchase registration e-mail not s

PostPosted: October 1st, 2011, 4:30 pm
by Jason Caldwell
Thanks for the heads up on this thread.
n4v4rr0 wrote:Everything is still working fine, btw....and I don't expect anyone to help fix a problem that's not happening. However, for future readers of this forum...do you have any insight into my original question? Is s2Member integrated with Mailchimp in such a way that if my MC account were suddenly inaccessible or invalid, that s2Member would lose the ability to send its own e-mails, for example the introductory registration e-mail?
No, s2Member's integration with MailChimp is not one which relies upon MailChimp to send emails from your installation of WordPress. s2Member integrates it's own mailing routines with the core WordPress function wp_mail(). http://codex.wordpress.org/Function_Reference/wp_mail

Cristián Lávaque wrote:Interesting. Maybe the MailChimp part is ran before the purchase confirmation email, so if it fails, the other one doesn't happen. I'll notify Jason about this in case he can improve the behavior. Thanks for the update!
Hmm, I suppose that's possible. Although I think it would be highly unlikely. s2Member does connect on the user_register action Hook within the WordPress core, which IS processed before the wp_new_user_notification() function. But, a failure to connect and process a MailChimp integration should not prevent the remaining routines from running afterward. I say "possible", only because of the sequence of events. If a particular plugin combination were running on a particular installation of WordPress, it's possible, though unlikely. I don't think there is much that can be done to rearrange the order of these events. The wp_new_user_notification() function is called after s2Member is given the chance to intervene; that's how WordPress works internally.