I am using a nice form manager plugin (http://vfb.matthewmuro.com/) that has PayPal integration. So I can have a form with rows to register up to 4 people for a golf outing and each registration bumps the cost by 75 bucks. Then there’s an option to add a hole sponsorship for 100 bucks. I have s2Member PRO forms, but this little plugin gives me flexibility that I can’t get with s2Member PRO forms; specifically, I am NOT creating a member, I may be taking payments from non-members that I just want to do one-off.
All works great; it’s “integration” is simply specifying the PayPal email address of the person taking payment. Here’s the rub, when PayPal is finished, it returns and then s2Member throws up because I didn’t have PayPal send the right “stuff” back.
The first one was easy; the error was “custom isn’t set right” – I knew to have the plugin tell PayPal to return “custom=www.myurl.com” and that was fixed. Now the problem is transaction / status problems. I get the following:
ERROR: Unexpected txn_type/status.
The txn_type/status did not meet requirements.
Here’s my request: I need to know what I should pass back to s2Member on return so that it doesn’t error out. Or, can I tell PayPal to NOT return to my site in the same way that it would for a membership or other s2Member-driven purchase?
REDACTED LOG FILES
File: paypal-ipn.log
=======================
LOG ENTRY: Wed Aug 28th, 2013 @ precisely 7:42 pm UTC
PHP v5.3.13 :: WordPress® v3.6 :: s2Member® v130816 :: s2Member® Pro v130816
Memory 47.88 MB :: Real Memory 48.25 MB :: Peak Memory 48.03 MB :: Real Peak Memory 48.25 MB
www.mysite.com/?s2member_paypal_notify=1
User-Agent: PayPal IPN ( https://www.paypal.com/ipn )
array (
'mc_gross' => '75.00',
'protection_eligibility' => 'Ineligible',
'item_number1' => '',
'payer_id' => 'VKX5UJFAUQP3N',
'tax' => '0.00',
'payment_date' => '12:42:38 Aug 28, 2013 PDT',
'payment_status' => 'Completed',
'charset' => 'windows-1252',
'mc_shipping' => '0.00',
'mc_handling' => '0.00',
'first_name' => 'Xxxxxxx',
'mc_fee' => '2.48',
'notify_version' => '3.7',
'custom' => 'www.mysite.com',
'payer_status' => 'verified',
'business' => 'payeename@gmail.com',
'num_cart_items' => '1',
'mc_handling1' => '0.00',
'verify_sign' => 'Az-7lYaCY5RXQX7er34dorgkaBX8fELjL2XYLHax7.',
'payer_email' => 'payer@hisdomain.com',
'mc_shipping1' => '0.00',
'tax1' => '0.00',
'txn_id' => '0J568039YX860412R',
'payment_type' => 'instant',
'last_name' => 'Xxxxxxx',
'item_name1' => '1 Player',
'receiver_email' => 'payeename@gmail.com',
'payment_fee' => '2.48',
'quantity1' => '1',
'receiver_id' => '8J8XXXXXX6MDS',
'txn_type' => 'cart',
'mc_gross_1' => '75.00',
'mc_currency' => 'USD',
'residence_country' => 'US',
'transaction_subject' => 'www.mysite.com',
'payment_gross' => '75.00',
'ipn_track_id' => 'b663d17b1562d',
's2member_log' =>
array (
0 => 'IPN received on: Wed Aug 28, 2013 7:42:51 pm 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',
)
=======================
File: paypal-ipn.log
=======================
LOG ENTRY: Wed Aug 28th, 2013 @ precisely 7:42 pm UTC
PHP v5.3.13 :: WordPress® v3.6 :: s2Member® v130816 :: s2Member® Pro v130816
Memory 45.70 MB :: Real Memory 46.00 MB :: Peak Memory 45.84 MB :: Real Peak Memory 46.00 MB
www.mysite.com/?s2member_paypal_return=1&tx=0J568039YX860412R&st=Completed&amt=75%2e00&cc=USD&cm=www%2emysite%2ecom&item_number=
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:23.0) Gecko/20100101 Firefox/23.0
array (
'mc_gross' => '75.00',
'protection_eligibility' => 'Ineligible',
'payer_id' => 'VKW5UJFAUQP3N',
'tax' => '0.00',
'payment_date' => '12:42:38 Aug 28, 2013 PDT',
'payment_status' => 'Completed',
'charset' => 'windows-1252',
'mc_shipping' => '0.00',
'mc_handling' => '0.00',
'first_name' => 'Xxxxxxx',
'mc_fee' => '2.48',
'custom' => 'www.mysite.com',
'payer_status' => 'verified',
'business' => 'payeename@gmail.com',
'num_cart_items' => '1',
'mc_handling1' => '0.00',
'payer_email' => 'payer@hisdomain.com',
'mc_shipping1' => '0.00',
'tax1' => '0.00',
'txn_id' => '0J568039YX860412R',
'payment_type' => 'instant',
'last_name' => 'Xxxxxxxx',
'item_name1' => '1 Player',
'receiver_email' => 'payeename@gmail.com',
'payment_fee' => '2.48',
'quantity1' => '1',
'receiver_id' => '8J86SSHH76MDS',
'txn_type' => 'cart',
'mc_gross_1' => '75.00',
'mc_currency' => 'USD',
'residence_country' => 'US',
'transaction_subject' => 'www.mysite.com',
'payment_gross' => '75.00',
's2member_log' =>
array (
0 => 'Return-Data received on: Wed Aug 28, 2013 7:42:50 pm UTC',
1 => 's2Member POST vars verified through a POST back to PayPal®.',
2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
3 => 'Unexpected `txn_type/status`. The `txn_type/status` did not match a required action.',
4 => 'Redirecting Customer to the Home Page (after displaying an error message).',
),
'subscr_gateway' => 'paypal',
)
-
This topic was modified 3 years, 4 months ago by
Randy King.
-
This topic was modified 3 years, 3 months ago by
Randy King.