PayPal Commerce odd iFrame issue stopping messages

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 yıl önce
Hi Everyone.
I have recently updated two websites to the latest version of Nop (one from 4.3 and one from 4.0) and configured PayPal Commerce plugin on both corredctly, but the website that was upgraded from 4.0 is not displaying the "Pay Later" messages whereas the other one that was upgraded from 4.3 is. PayPal contacted the client and said it could be to do with the javascript.

I thought it could be the plugin did not install correctly on the second website, so I uninstalled and reinstalled the plugin, but still the messages (pay later, pay in 4 etc.) will not show.

I then compared the source code to the other website we did at the same time that shows the messages without any issues and here are the differences:

Website updated from 4.3....



Website updated from 4.0....



......completely different iFrame display which is obviously the reason it is not showing.
Does anyone have any idea why one would work and the other be completely different and how I can fix it?

Thanks all.
2 yıl önce
I also see this problem
Works fine in development but not in production
The account setup using the Sandbox is the same for both systems
2 yıl önce
How did you go were you able to sort out the issue ?
I am using the same sandbox  settings for both development server and production server
I checked the settings but no luck - What could be different ?
2 yıl önce
No, still no luck. The messages just won't appear in this iFrame. No idea why it is different.
2 yıl önce
Nobody has any clues?
2 yıl önce
dashdesigns wrote:
Nobody has any clues?


Under configuration->Settings->All settings (advanced), make sure you have the following setting value or add it in

Setting name:
PayPalCommerceSettings.enabledfunding

Value:
paylater
2 yıl önce
Hi Jayc
Thanks so much for your reply.
I checked for that Setting and it was definitely in there but had no Value assigned to it. I tried adding the "paylater" value as you suggested and then restarted the application and cleared the cache, but unfortunately, the Pay Later message still does not appear and the iframe code is still the same as it was before. I guess that is not the solution in my case, but as mentioned - thanks!
2 yıl önce
dashdesigns wrote:
Hi Jayc
"paylater" value as you suggested and then restarted the application and cleared the cache, but unfortunately, the Pay Later message still does not appear and the iframe code


I'm only assuming that Paypal tries to automatically determine what the buyer locale is. Some locales do not support Pay in 4, so maybe the automatic determination is not working?

Firstly, check if the merchant is based in a country which Pay in 4 is supported. Otherwise try to force the PayPal SDK to AU locale.

eg. <script src="https://www.paypal.com/sdk/js?locale=en_AU&currency=AUD  .....

Unfortunately, forcing the locale isn't coded in the commerce plugin, you need to add it in. If you need further help, let us know.
2 yıl önce
Hi Jayc
That's the odd thing, as mentioned before I did the exact same update and install of the PayPal Commerce plugin on another website (both located in Australia) and one shows the messages fine whereas the other doesn't (as per my code snapshots).
The problem one has the locale set to Australia in both of these Nop websites, so if it works in one, why would it not work for the other?
The only difference was that one website was updated from 4.3 and one from 4.1, the one that has the problems is the pone from 4.1, so it potentially has something to do with the upgrade process missing something along the way, but I have no clue as to what.
I will also look into your suggestion.
Thanks again.
2 yıl önce
dashdesigns wrote:
The only difference was that one website was updated from 4.3 and one from 4.1, the one that has the problems is the pone from 4.1, so it potentially has something to do with the upgrade process missing something along the way, but I have no clue as to what.
I will also look into your suggestion.
Thanks again.


Maybe you could try to install a fresh temporary install of nop and paypal plugin on the same server, see if the error occurs on a fresh copy?

I had a quick look, the settings is actually a string parameter injection on the sdk script. You can try amending the setting and see if it works.

Setting name:
PayPalCommerceSettings.enabledfunding

Value:
paylater&locale=en_AU&currency=AUD
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.