Post by ADD Creative » Fri Jan 25, 2019 1:34 am

The PayPal docs are here. Although they are a bit confusing as some list the zone names and not codes.
https://developer.paypal.com/docs/class ... ate_codes/

Going by the PayPal Express module it look like Brazil, Canada, Italy, Mexico and USA are the main ones. But don't use the database ids, use the ISO code.
https://github.com/opencart/opencart/bl ... 1312-L1318

I can't see any reason why the full phone number shouldn't work the same in 3.0.2.0. Are you sure name="phone_number" is the correct field to set. The docs still say night_phone_a, b, c. But it wouldn't be the first time the PayPal docs are different.
https://developer.paypal.com/docs/class ... -variables

This topic my be helpful for the phone number.
viewtopic.php?t=43741&start=40#p679237

Remember to use your web browser's inspect tool at the last stake of the checkout to check the form fields actually being sent to PayPal.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by glolar » Mon Jan 28, 2019 6:10 pm

ADD Creative wrote:
Fri Jan 25, 2019 1:34 am
The PayPal docs are here. Although they are a bit confusing as some list the zone names and not codes.
https://developer.paypal.com/docs/class ... ate_codes/

Going by the PayPal Express module it look like Brazil, Canada, Italy, Mexico and USA are the main ones. But don't use the database ids, use the ISO code.
https://github.com/opencart/opencart/bl ... 1312-L1318

I can't see any reason why the full phone number shouldn't work the same in 3.0.2.0. Are you sure name="phone_number" is the correct field to set. The docs still say night_phone_a, b, c. But it wouldn't be the first time the PayPal docs are different.
https://developer.paypal.com/docs/class ... -variables

This topic my be helpful for the phone number.
viewtopic.php?t=43741&start=40#p679237

Remember to use your web browser's inspect tool at the last stake of the checkout to check the form fields actually being sent to PayPal.
Thanks for the reminder to verify what is actually passed to PayPal by using the browser tools.

It turns out that in 3.0.2.0, I was passing the entire phone number in the field named phone_number, and in 1.4.9.3 I am actually passing night_phone_a, night_phone_b and night_phone_c to PayPal. So, I have made the necessary changes to the 3.0.2.0. pp_standard.php and pp_standard.twig files, and everything is right with the world again, and with PayPal.

ADD Creative, I cannot express enough gratitude to you. You are truly an asset to those of us on this forum.

Now, to something unrelated, but since I am here, I have a couple of quick questions:

1. Do you know why I am no longer getting email notifications from the forum when someone replies to my posts, even though I always check the option to "Notify me when a reply is posted"? I used to get those emails.
2. Am I the only one whose .twig file changes are not saved if I use the Admin Theme Editor to make my changes? (Yes, I save the changes in the Theme Editor, refresh my cache on the Dashboard, refresh my Modules, have my storage folder outside the public_html folder, updated both of the config.php files to reflect the new location of the storage folder). If I save my changes in an external editor (Dreamweaver in my case), then upload the changed file, refresh my cache, then my changes are saved. So frustrating.

Thanks again for all the help!

User avatar
Active Member

Posts

Joined
Thu Jul 29, 2010 12:35 pm
Location - San Diego, CA

Post by ADD Creative » Tue Jan 29, 2019 1:10 am

Can't help you with the forum email issues, as I've never had the notification email switch on. I also have a few issues with the forum, such as the styling button no longer work and any images in posts a tiny unless I click reply.

As for the theme editor. There have been a few issues raised, maybe someone has posted a workaround.
https://github.com/opencart/opencart/is ... eme+editor

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 45 guests