Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal is not returning customer extra fields


ZeroHero

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.

Link to comment
Share on other sites

  • 2 weeks later...

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...