Post by HDIcart » Thu Jan 07, 2016 4:06 am

I noticed a bug (or perhaps an oversight) in the Paypal Pro extension. It's not feeding the company name or address line 2 fields to Paypal. I checked the core code to make sure it wasn't something VQmod was over writing, and it doesn't appear to me (though I'm a novice).

Any ideas on how to fix?

http://www.hobbiesdepot.com


Newbie

Posts

Joined
Fri Nov 20, 2015 4:21 am

Post by HDIcart » Thu Jan 07, 2016 11:47 pm

update : I read through Paypal's API documentation, and it doesn't appear as if there's a way to send the company name at all. Strange.

The address line 2 is easy. Just go to :
catalog/controller/payment/pp_pro.php

and look for :
$request .= '&SHIPTOSTREET=' . urlencode($order_info['shipping_address_1']);

After that, add:
$request .= '&SHIPTOSTREET2=' . urlencode($order_info['shipping_address_2']);

then look for:
$request .= '&SHIPTOSTREET=' . urlencode($order_info['payment_address_1']);

after that add:
$request .= '&SHIPTOSTREET2=' . urlencode($order_info['payment_address_2']);

It really should be done in VQmod and not by changing the core file, but that's the gist of it

http://www.hobbiesdepot.com


Newbie

Posts

Joined
Fri Nov 20, 2015 4:21 am
Who is online

Users browsing this forum: No registered users and 3 guests