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.

DigiResults Integration

Home Forums Community Forum DigiResults Integration

Tagged: ,

This topic contains 0 replies, has 1 voice. Last updated by  Andrew Peacock 3 years, 10 months ago.

Topic Author Topic
Posted: Friday Mar 1st, 2013 at 4:02 am #43452

Hi,

Further to the posts at http://www.s2member.com/forums/topic/digiresults-integration/, I’ve almost got digiresults -> S2 integration working. I’ve got Paypal IPN data posted to S2 from digiresults, and processed to the point where it appears in the logs (see below). However, the users are not being set up. Here is the log from S2 via Digiresults (with sensitive info removed):

LOG ENTRY: Thu Feb 28th, 2013 @ precisely 9:43 pm UTC
PHP v5.3.8 :: WordPress® v3.5.1 :: s2Member® v130221 :: s2Member® Pro v130221
Memory 29.83 MB :: Real Memory 31.00 MB :: Peak Memory 30.25 MB :: Real Peak Memory 31.00 MB
xxx.com/?s2member_paypal_notify=1&s2member_paypal_proxy=xxx&s2member_paypal_proxy_verification=xxx&custom=xxx.com
User-Agent: 
array (
  'custom' => 'xxx.com',
  'mc_gross' => '1',
  'protection_eligibility' => 'Ineligible',
  'payer_id' => 'xxx',
  'tax' => '0.00',
  'address_street' => '',
  'payment_date' => '2013-02-28T21:43:51Z',
  'payment_status' => 'Completed',
  'charset' => 'windows-1252',
  'address_zip' => '',
  'first_name' => 'Andrew',
  'mc_fee' => '0.01',
  'address_country_code' => '',
  'address_name' => '',
  'notify_version' => '3.4',
  'payer_status' => 'verified',
  'business' => 'test-sales@xxx.com',
  'address_country' => '',
  'address_city' => '',
  'quantity' => '1',
  'verify_sign' => '',
  'payer_email' => 'andrew@xxx.com',
  'txn_id' => 'xxx',
  'payment_type' => 'instant',
  'btn_id' => '',
  'last_name' => 'Peacock',
  'address_state' => '',
  'receiver_email' => 'paypal@xxx.com',
  'payment_fee' => '0.01',
  'shipping_discount' => '0.00',
  'insurance_amount' => '0.00',
  'receiver_id' => 'xxx',
  'txn_type' => 'web_accept',
  'item_name' => 'XXX Bronze',
  'discount' => '0.00',
  'mc_currency' => 'USD',
  'item_number' => '',
  'residence_country' => 'GB',
  'shipping_method' => 'default',
  'handling_amount' => '0.00',
  'transaction_subject' => 'XXX Bronze',
  'payment_gross' => '0.01',
  'shipping' => '0.00',
  'ipn_track_id' => '',
  'dvariant' => '9151',
  'test_ipn' => '1',
  'proxy_verified' => 'xxx',
  's2member_log' => 
  array (
    0 => 'IPN received on: Thu Feb 28, 2013 9:43:51 pm UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 'Ignoring this IPN request. The `txn_type/status` does NOT require any action on the part of s2Member.',
  ),
  'subscr_gateway' => 'xxx',
  's2member_paypal_proxy' => 'xxx',
  's2member_paypal_proxy_verification' => 'xxx',
)

In contrast, here’s one generated by the actual Paypal button created within S2:

LOG ENTRY: Thu Feb 28th, 2013 @ precisely 10:12 pm UTC
PHP v5.3.8 :: WordPress® v3.5.1 :: s2Member® v130221 :: s2Member® Pro v130221
Memory 29.10 MB :: Real Memory 31.00 MB :: Peak Memory 30.30 MB :: Real Peak Memory 31.00 MB
viralbacklinkbuilder.com/?s2member_paypal_notify=1
User-Agent: 
array (
  'mc_gross' => '1.00',
  'invoice' => 'xxx',
  'protection_eligibility' => 'Ineligible',
  'payer_id' => 'xxx',
  'tax' => '0.00',
  'payment_date' => '14:12:08 Feb 28, 2013 PST',
  'payment_status' => 'Pending',
  'charset' => 'windows-1252',
  'first_name' => 'Andrew',
  'option_selection1' => '1',
  'option_selection2' => '1.2.3.4',
  'notify_version' => '3.7',
  'custom' => 'xxx.com',
  'payer_status' => 'verified',
  'quantity' => '1',
  'verify_sign' => 'xxx.xxx',
  'payer_email' => 'subtest3@xxx.com',
  'option_name1' => 'Referencing Customer ID',
  'option_name2' => 'Customer IP Address',
  'txn_id' => 'xxx',
  'payment_type' => 'instant',
  'last_name' => 'Peacock',
  'receiver_email' => 'andrew@xxx.com',
  'pending_reason' => 'unilateral',
  'txn_type' => 'web_accept',
  'item_name' => 'Bronze Member / description and pricing details here.',
  'mc_currency' => 'USD',
  'item_number' => '1',
  'residence_country' => 'US',
  'test_ipn' => '1',
  'handling_amount' => '0.00',
  'transaction_subject' => 'xxx.com',
  'payment_gross' => '1.00',
  'shipping' => '0.00',
  'ipn_track_id' => 'xxx',
  's2member_log' => 
  array (
    0 => 'IPN received on: Thu Feb 28, 2013 10:12:12 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 ( `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' => 'paypal',
  'subscr_id' => 'xxx',
  'eotper' => NULL,
  'ccaps' => NULL,
  'level' => '1',
  'ip' => '1.2.3.4',
  'period1' => '0 D',
  'mc_amount1' => '0.00',
  'period3' => '1 L',
  'mc_amount3' => '1.00',
  'initial_term' => '0 D',
  'initial' => '1.00',
  'regular' => '1.00',
  'regular_term' => '1 L',
  'recurring' => '0',
)

With the second entry, I understand the issue about “The existing User ID is associated with an Administrator”, so no problem there – at least it got to the point of being about to update the account, unlike the first.

The key difference I can see is that although both transactions are of type “web-accept”, the first one is for a one-time payment, the second for a recurring payment.

Is that the reason the first one does not create the user account?

In which case I have an issue, as I want to sell both recurring and one-time memberships.

Any advice would be appreciated.

Regards,
Andy

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.