New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug ---> Paypal Extension payments treated like payments for new account #1117

Open
openmtbmap opened this Issue Aug 8, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@openmtbmap

openmtbmap commented Aug 8, 2017

Wow - I really should not have started to log how much s2member is buggy on paypal - really please please please bug track yourself - this is the 3rd huge bug (meaning complete fuck up) that I found in the last 3 month about paypal and now report here...
Or put a big big warning everywhere that paypal button payments are unstable and not supported anymore.

From about 80 extension payments by paypal handled in my log over the last days - 5 are treated as payment for new account - hence EOT not prolonged but email sent to buyer to ask him to create new account...

All are missing option_selection and option_name in the IPN log - while they are still present in the Paypal API log.

Also somehow already in the paypal API log they have modify=0 - even though there is no button with modify=0 for logged in users available. So somewhere s2member once again went havoc with paypal.

Below I've gathered all the data for 1 of the 4 broken payments:
IPN Message from Paypal IPN History:

mc_gross=40.00&invoice=597f752089724~IP_HIDDEN&protection_eligibility=Eligible&address_status=confirmed&payer_id=FFZ47RMRAUFN2&address_street=Street 22&payment_date=11:21:47 Jul 31, 2017 PDT&payment_status=Completed&charset=windows-1252&address_zip=ZIP_HIDDEN&first_name=FIRST_NAME&mc_fee=1.43&address_country_code=DE&address_name=FIRST_NAME Last_NAME_HIDDEN&notify_version=3.8&custom=openmtbmap.org|IP_HIDDEN|DE|DE|+49-&payer_status=verified&business=seller_email_HIDDEN&address_country=Germany&address_city=City_HIDDEN&quantity=1&verify_sign=AnNMT7nRteKS2auTkxdsRz9rRvvPAPl2VGySvKQvIe2jk43qsnCDFskJ&payer_email=buyer_email_HIDDEN&txn_id=8P0845666D1395424&payment_type=instant&last_name=Last_NAME_HIDDEN&address_state=&receiver_email=seller_email_HIDDEN&payment_fee=&shipping_discount=0.00&insurance_amount=0.00&receiver_id=Z89X4K6BZYG2E&txn_type=web_accept&item_name=€40 gives you 3 year OpenMTBMap access extension&discount=0.00&mc_currency=EUR&item_number=1::3 Y&residence_country=DE&shipping_method=Default&transaction_subject=&payment_gross=&ipn_track_id=76bee994bff17

IPN Log:

LOG ENTRY: Mon Jul 31st, 2017 @ precisely 6:22 pm UTC
PHP v7.0.20-1~ubuntu16.04.1+deb.sury.org+1 :: WordPress v4.8 :: s2Member v170722 :: s2Member Pro v170722
Memory 18.13 MB :: Real Memory 16.00 MB :: Peak Memory 19.31 MB :: Real Peak Memory 16.00 MB
openmtbmap.org/de/?s2member_paypal_notify=1
User-Agent: PayPal IPN ( https://www.paypal.com/ipn )
Array
(
    [mc_gross] => 40.00
    [invoice] => 597f752089724~IP_HIDDEN
    [protection_eligibility] => Eligible
    [address_status] => confirmed
    [payer_id] => FFZ47RMRAUFN2
    [address_street] => Street 22
    [payment_date] => 11:21:47 Jul 31, 2017 PDT
    [payment_status] => Completed
    [charset] => windows-1252
    [address_zip] => ZIP_HIDDEN
    [first_name] => FIRST_NAME
    [mc_fee] => 1.43
    [address_country_code] => DE
    [address_name] => FIRST_NAME Last_NAME_HIDDEN
    [notify_version] => 3.8
    [custom] => {"ip_address":"188.110.86.188"}
    [payer_status] => verified
    [business] => seller_email_HIDDEN
    [address_country] => Germany
    [address_city] => City_HIDDEN
    [quantity] => 1
    [verify_sign] => AnNMT7nRteKS2auTkxdsRz9rRvvPAPl2VGySvKQvIe2jk43qsnCDFskJ
    [payer_email] => buyer_email_HIDDEN
    [txn_id] => 8P0845666D1395424
    [payment_type] => instant
    [last_name] => Last_NAME_HIDDEN
    [address_state] => 
    [receiver_email] => seller_email_HIDDEN
    [payment_fee] => 
    [shipping_discount] => 0.00
    [insurance_amount] => 0.00
    [receiver_id] => Z89X4K6BZYG2E
    [txn_type] => web_accept
    [item_name] => €40 gives you 3 year OpenMTBMap access extension
    [discount] => 0.00
    [mc_currency] => EUR
    [item_number] => 1::3 Y
    [residence_country] => DE
    [shipping_method] => Default
    [transaction_subject] => 
    [payment_gross] => 
    [ipn_track_id] => 76bee994bff17
    [s2member_log] => Array
        (
            [0] => IPN received on: Mon Jul 31, 2017 6:21:59 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/o update vars.
            [5] => Signup Confirmation Email sent to: "FIRST_NAME Last_NAME_HIDDEN" <buyer_email_HIDDEN>.
            [6] => User exists. Handling `payment` for Subscription via ( `web_accept` ).
            [7] => Payment Notification Emails have been processed.
            [8] => Storing IPN signup vars now. These are associated with a User's account record; for future reference.
        )

    [subscr_gateway] => paypal
    [subscr_id] => 8P0845666D1395424
    [subscr_baid] => 8P0845666D1395424
    [subscr_cid] => 8P0845666D1395424
    [level] => 1
    [ccaps] => 
    [eotper] => 3 Y
    [ip] => IP_HIDDEN
    [period1] => 0 D
    [mc_amount1] => 0.00
    [period3] => 3 Y
    [mc_amount3] => 40.00
    [initial_term] => 0 D
    [initial] => 40.00
    [regular] => 40.00
    [regular_term] => 3 Y
    [recurring] => 0
    [currency] => EUR
    [currency_symbol] => €
)

Paypal API log:

LOG ENTRY: Mon Jul 31st, 2017 @ precisely 6:21 pm UTC
PHP v7.0.20-1~ubuntu16.04.1+deb.sury.org+1 :: WordPress v4.8 :: s2Member v170722 :: s2Member Pro v170722
Memory 12.21 MB :: Real Memory 10.00 MB :: Peak Memory 12.35 MB :: Real Peak Memory 10.00 MB
openmtbmap.org/de/payment-button/?value=E3&country=DE&countryip=DE&telephone=+49-
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
-------- Input vars: ( Mon Jul 31, 2017 6:21:20 pm UTC ) --------
array (
  'METHOD' => 'BMCreateButton',
  'BUTTONCODE' => 'ENCRYPTED',
  'BUTTONTYPE' => 'BUYNOW',
  'L_BUTTONVAR0' => 'business=seller_email_HIDDEN',
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zk0ZjNhOWY3MTIwZGQyNWUwMWY1ZmNiMTM0OTMzNjA5MDQ5MmFjY2UwYjM3Zjg5Njg4MQ',
  'L_BUTTONVAR4' => 'rm=2',
  'L_BUTTONVAR5' => 'no_shipping=2',
  'L_BUTTONVAR6' => 'no_note=1',
  'L_BUTTONVAR7' => 'custom=openmtbmap.org|IP_HIDDEN|DE|DE|+49-',
  'L_BUTTONVAR8' => 'currency_code=EUR',
  'L_BUTTONVAR9' => 'page_style=paypal',
  'L_BUTTONVAR10' => 'charset=utf-8',
  'L_BUTTONVAR11' => 'item_name=&euro;40 gives you 3 year OpenMTBMap access extension',
  'L_BUTTONVAR12' => 'item_number=1::3 Y',
  'L_BUTTONVAR13' => 'invoice=597f752089724~IP_Hidden_here',
  'L_BUTTONVAR14' => 'on0=Referencing Customer ID',
  'L_BUTTONVAR15' => 'os0=0YL05654SN915935B',
  'L_BUTTONVAR16' => 'on1=Customer IP Address',
  'L_BUTTONVAR17' => 'os1=IP_HIDDEN',
  'L_BUTTONVAR18' => 'modify=0',
  'L_BUTTONVAR19' => 'amount=40.00',
  'VERSION' => '71.0',
  'USER' => 'email_HIDDEN_api1.gmail.com',
  'PWD' => 'xxxxxxxx/PWD/SIG',
  'SIGNATURE' => 'xxxxxxxx/PWD/SIG',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment