Post by mfive » Tue Nov 22, 2011 10:19 am

So, I started using Paypal Standard, but noticed that billing information was not being properly populated to PayPal once my customers left my cart to pay at PayPal. They were being forced to enter their billing address again...

Long story short, I tracked this all down to the "state" not being sent to PayPal standard with the rest of their billing address information, so PayPal viewed it as being in "invalid format" and left all those fields blank.

Here's what I did to fix it for 1.5.1:

In /catalog/controller/payment/pp_standard.php (around line 53), after

Code: Select all

$this->data['city'] = html_entity_decode($order_info['payment_city'], ENT_QUOTES, 'UTF-8');
ADD

Code: Select all

$this->data['state'] = html_entity_decode($order_info['payment_zone_code'], ENT_QUOTES, 'UTF-8');
Then, in /catalog/view/theme/default/template/payment/pp_standard.tpl (around line 31), after

Code: Select all

<input type="hidden" name="city" value="<?php echo $city; ?>" />
ADD

Code: Select all

<input type="hidden" name="state" value="<?php echo $state; ?>" />
This has allowed PayPal Standard to now recognize my customer's billing address and relieves them of having to enter it twice.

Hopes this helps someone else!

New member

Posts

Joined
Sat Jan 29, 2011 9:49 am

Post by notaprogrammer » Mon Dec 05, 2011 12:12 pm

Thank you - major help!


Posts

Joined
Sat Dec 03, 2011 6:33 am

Post by mfive » Mon Dec 05, 2011 12:15 pm

notaprogrammer wrote:Thank you - major help!
NP, glad I was able to help someone else!

New member

Posts

Joined
Sat Jan 29, 2011 9:49 am

Post by waterfi » Wed Jun 13, 2012 2:18 am

Thanks! Huge help!

I also changed the billing variables to shipping as mentioned in other forums.

Newbie

Posts

Joined
Wed Apr 04, 2012 1:51 am

Post by mfive » Wed Jun 13, 2012 2:41 am

waterfi wrote:Thanks! Huge help!

I also changed the billing variables to shipping as mentioned in other forums.
Glad you got it working.

New member

Posts

Joined
Sat Jan 29, 2011 9:49 am

Post by kgkaraoke » Fri Jun 15, 2012 12:34 am

mfive wrote:So, I started using Paypal Standard, but noticed that billing information was not being properly populated to PayPal once my customers left my cart to pay at PayPal. They were being forced to enter their billing address again...

Long story short, I tracked this all down to the "state" not being sent to PayPal standard with the rest of their billing address information, so PayPal viewed it as being in "invalid format" and left all those fields blank.

Here's what I did to fix it for 1.5.1:

In /catalog/controller/payment/pp_standard.php (around line 53), after

Code: Select all

$this->data['city'] = html_entity_decode($order_info['payment_city'], ENT_QUOTES, 'UTF-8');
ADD

Code: Select all

$this->data['state'] = html_entity_decode($order_info['payment_zone_code'], ENT_QUOTES, 'UTF-8');
Then, in /catalog/view/theme/default/template/payment/pp_standard.tpl (around line 31), after

Code: Select all

<input type="hidden" name="city" value="<?php echo $city; ?>" />
ADD

Code: Select all

<input type="hidden" name="state" value="<?php echo $state; ?>" />
This has allowed PayPal Standard to now recognize my customer's billing address and relieves them of having to enter it twice.

Hopes this helps someone else!
Open Source: You get NOTHING for NOTHING.

New member

Posts

Joined
Fri Oct 29, 2010 9:06 am

Post by fmcjq » Tue Jun 26, 2012 12:40 pm

to mfive,
Thank you so much ! ! ! :)

Newbie

Posts

Joined
Sat May 19, 2012 12:34 pm

Post by garuda » Fri Sep 14, 2012 1:26 am

This works great, thanks for the fix!

New member

Posts

Joined
Wed Apr 25, 2012 10:40 am

Post by RideTheWave » Thu Jul 06, 2017 1:28 pm

Are you by chance getting the telephone number field to populate in PayPal Standard? In my case, visitors have to enter it twice, once in OC and again in PayPal Standard. Do you have a similar fix for that?

New member

Posts

Joined
Fri May 19, 2017 8:29 am
Who is online

Users browsing this forum: No registered users and 4 guests