New Zenner
- Join Date:
- Mar 2010
- Posts:
- 11
- Plugin Contributions:
- 0
No address sent to PayPal via Payments Pro in 1.3.9e
I am unable to get customers' shipping (or billing) addresses to appear in PayPal's transaction reports, despite all such information being present in Admin/Orders.
Transactions are going through okay - including 3-D Secure for 'checkout without account' using a debit card.
What settings are required in the Payment Modules - or - is there a straightforward edit/rewrite to a php file?
I suspect includes/modules/payment/paypaldp.php is where something's not happening..
For example maybe here somewhere and further down (the rest not included here to save wasting space..)
// Initialize the paypal caller object.
$doPayPal = $this->paypal_init();
$optionsAll = array_merge($options,
array('STREET' => $order->billing['street_address'],
'ZIP' => $order->billing['postcode'],
'CITY' => $order->billing['city'],
'STATE' => $order->billing['state'],
'STREET2' => $order->billing['suburb'],
'COUNTRYCODE' => $order->billing['country']['iso_code_2'],
'EXPDATE' => $cc_expdate_month . $cc_expdate_year,
'EMAIL' => $order->customer['email_address'],
'PHONENUM' => $order->customer['telephone']));
$optionsShip = array();
if (isset($order->delivery) && $order->delivery['street_address'] != '') {
$optionsShip= array('SHIPTONAME' => ($order->delivery['name'] == '' ? $order->delivery['firstname'] . ' ' . $order->delivery['lastname'] : $order->delivery['name']),
'SHIPTOSTREET' => $order->delivery['street_address'],
'SHIPTOSTREET2' => $order->delivery['suburb'],
'SHIPTOCITY' => $order->delivery['city'],
'SHIPTOZIP' => $order->delivery['postcode'],
'SHIPTOSTATE' => $order->delivery['state'],
'SHIPTOCOUNTRYCODE'=> $order->delivery['country']['iso_code_2']);
}
// if these optional parameters are blank, remove them from transaction
if (isset($optionsShip['SHIPTOSTREET2']) && trim($optionsShip['SHIPTOSTREET2']) == '') unset($optionsShip['SHIPTOSTREET2']);
if ($optionsAll['STREET2'] == '') unset($optionsAll['STREET2']);
if (isset($optionsShip['SHIPTOPHONE']) && trim($optionsShip['SHIPTOPHONE']) == '') unset($optionsShip['SHIPTOPHONE']);
etc etc
But somehow it doesn't tell PayPal the address - 'PayPal does not have it on file' - or words to that effect at PayPal's transaction report page..
I did have the latest FEC/CSLoader installed - but only by removing it was I able to get the Payments Pro module to actually get past the 'Your order is being processed' stage..
If any of the above makes sense to anyone - I'd be really grateful to hear any good ideas..