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?
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
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
Who is online
Users browsing this forum: No registered users and 3 guests