Jump to content



Latest News: (loading..)

PayPal is not returning customer extra fields

paypal address

  • Please log in to reply
1 reply to this topic

#1   ZeroHero

ZeroHero
  • Members
  • 8 posts
  • Real Name:William
  • Gender:Male

Posted 15 August 2012 - 10:28 AM

Dear All,

Using OSC v2.2 and PayPal Website Payments Standard.

I live in Singapore and to accommodate the local address format i have added 2 extra customer address field. They are for the house / block number and unit number.

Is it possible to get PayPal to return these 2 fields?

PayPal also ignore the suburb filed. Is it possible to pass this field to PayPal so that it is return to the order invoice?

At the moment, only the "STREET_ADDRESS" field is capture by PayPal and return to the OSCommerce which was record in the successful order invoice.

Thank you in advance for your help.

#2   a.forever

a.forever
  • Members
  • 199 posts
  • Real Name:Kevin
  • Gender:Male

Posted 29 August 2012 - 05:53 PM

Under includes/modules/payment/paypal_standard.php

FIND:

'customers_street_address' => $order->customer['street_address'],

ADD BELOW:

'customers_suburb' => $order->customer['suburb'],

You may forward those two extra fields to PayPal by modifiying either line. Merge both fields into the return (i.e. $order->customer['firstfield'] . ' ' . $order->customer['lastfield'])

Edited by a.forever, 29 August 2012 - 05:54 PM.