Post by mistergreen » Wed Mar 09, 2016 2:26 am

We updated to 2.1.0.2. PayPal Standard does everything EXCEPT send the customer info during the transaction. So none of the fields get filled for shipping (on paypal). Also, I don't know how bad it is, but there are 'protection ineligible' messages in the logs.

I've tried a couple of 'fixes' from these forums- changing some code, and today I tried copying the pp tpl files from the old (working) installation. Still no go. Here is the log from my last test transaction. No customer info in the email to my boss, and he confirmed that the shipping info is missing in his pp account.

Code: Select all

2016-03-08 9:33:38 - PP_STANDARD :: IPN REQUEST: cmd=_notify-validate&mc_gross=0.01&invoice=8+-+Trevor+Greenbank&protection_eligibility=Ineligible&item_number1=KARMATEST-01&payer_id=MGCKM4SYJNM88&tax=0.00&payment_date=09%3A36%3A21+Mar+08%2C+2016+PST&payment_status=Completed&charset=windows-1252&mc_shipping=0.00&mc_handling=0.00&first_name=trevor&mc_fee=0.01¬ify_version=3.8&custom=8&payer_status=verified&business=info%40j-clips.com&num_cart_items=1&mc_handling1=0.00&verify_sign=AZFP5tfmh-umu9rDuj4AQJUKwAOQAJ4m92n5WEhxngwjKCuQGv5ymLdR&payer_email=trevorgreenbank%40gmail.com&mc_shipping1=0.00&tax1=0.00&txn_id=04N44137N17602432&payment_type=instant&last_name=greenbank&item_name1=Karma&receiver_email=info%40j-clips.com&payment_fee=&quantity1=1&receiver_id=RY4YKMDT6ZG82&txn_type=cart&mc_gross_1=0.01&mc_currency=CAD&residence_country=CA&transaction_subject=&payment_gross=&ipn_track_id=f1a46998976c2
2016-03-08 9:33:38 - PP_STANDARD :: IPN RESPONSE: VERIFIED
If anybody knows how to fix this, we'd be willing to pay for a guaranteed solution. I am being pressured to switch to a different system, which i feel terrible about, since I recommended OC- because i've used it successfully before. How can they release such sloppy code and still sleep at night?

Also, as an alternative, does anyone know if any of the PP extensions for APIs paypal is actually updating (express? pro?) work flawlessly in 2.1.0.2? Any advice as far as which gateways are rock-solid is also appreciated. If there was an emoticon for Seppuku, imagine that's the one at the end here...

Newbie

Posts

Joined
Sun Jan 12, 2014 7:19 am

Post by budgetneon » Thu Mar 10, 2016 8:57 pm

You could test and see what's actually being sent in the form post to paypal.

Create a new file in the root directory of your server, called "formtest.php", and put this in it:

Code: Select all

<?php
echo '<pre>';
print_r($_POST);
echo '</pre>';
?>
Then, edit catalog/controller/payment/pp_standard.php, and just under this section:

Code: Select all

if (!$this->config->get('pp_standard_test')) {
    $data['action'] = 'https://www.paypal.com/cgi-bin/webscr';
} else {
    $data['action'] = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
}
Add this:

Code: Select all

$data['action']='https://yourservername.com/formtest.php';
Then, do a test purchase using paypal standard. That would submit the form that normally goes to paypal to your new php script, and show you what's being passed over to paypal.

New member

Posts

Joined
Sat Sep 20, 2014 11:32 pm


Post by budgetneon » Thu Mar 10, 2016 9:14 pm

Oh, also, you might want to edit upload/catalog/view/theme/default/template/payment/pp_standard.tpl

It currently has this:

Code: Select all

<input type="hidden" name="address_override" value="0" />
If you change that to:

Code: Select all

<input type="hidden" name="address_override" value="1" />
Paypal explains this way:
"Overriding Addresses Stored With PayPal - For people who already have PayPal accounts and whom you already prompted for a shipping address before they choose to pay with PayPal, you can use the entered address instead of the address the person has stored with PayPal. Set the address_override variable to 1"


(info from: https://developer.paypal.com/docs/class ... ormbasics/)

New member

Posts

Joined
Sat Sep 20, 2014 11:32 pm

Who is online

Users browsing this forum: No registered users and 1 guest