Jump to content
benny4563

paypal advanced paypal payflow

Recommended Posts

I saw this bug too. I changed the following code in order to send the state abbreviations instead of letting Paypal truncate the full state name to two letters (i.e "Georgia" becomes "Ge"). There may be a better way but this seems to work perfectly...

 

in catalog/includes/modules/payment/paypal_payflow_link.php near line 100 change the following

 

. "&BILLTOSTATE=" . $order->customer['state']

to

//MODIFIED TO SEND STATE ABBREVIATION TO PAYPAL
//. "&BILLTOSTATE=" . $order->customer['state'] ORIGINAL CODE
. "&BILLTOSTATE=" . tep_get_zone_code($order->customer['country']['id'], $order->customer['zone_id'], $order->customer['zone_name'])
//MODIFIED TO SEND STATE ABBREVIATION TO PAYPAL

 

And

 

. "&SHIPTOSTATE=" . $order->delivery['state']

to

//MODIFIED TO SEND STATE ABBREVIATION TO PAYPAL
//. "&SHIPTOSTATE=" . $order->delivery['state'] ORIGINAL CODE
. "&SHIPTOSTATE=" . tep_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], $order->delivery['zone_name'])
//MODIFIED TO SEND STATE ABBREVIATION TO PAYPAL

 

Also, I installed the DHTML State Selection for 2.3.1 to make sure customers pick/spell States correctly. You can find it here http://addons.oscommerce.com/info/8028

Edited by natewyckoff

Share this post


Link to post
Share on other sites

Hi.
I've some error

Some required information is missing or incorrect. Please correct the fields below and try again.

  • Error: Invalid Merchant or Merchant doesn't exist!
     

I can't find  Admin > Configuration > My Store page.
Pls help me.

Thanks
Suren

Share this post


Link to post
Share on other sites

Since 2012 PayPal have many changes. Can you say where is Admin > Configuration > My Store page  now

I have encountered this same problem, I am using Paypal's Layout C. I fixed the issue by going to Admin > Configuration > My Store and changed the "Display Prices with Tax" to true. When set to true the problem resolved, when set to false the error message displays.

Edited by Suren

Share this post


Link to post
Share on other sites

Suren are you trying to use Sandbox mode? 


Kym

Projects Director @ ozEworks.com

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

×