Jump to content
Sign in to follow this  
ZeroHero

PayPal is not returning customer extra fields

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×