Thread Starter
hyperV
(@hyperv)
Guys, sometimes I see not the forest for the trees.
I found the right configuration for my first point.
Point 2. and 3. are still not fixed.
2. I have an issue created already for updating how the locale code is getting set in the SetExpressCheckout request to PayPal.
Right now it’s sending the country code based on the WP_LANG in your wp-config.php file, but that’s not always matching up with PayPal supports. I’m going to go ahead and switch that using the full local code instead.
Until then, you could make this change directly in the plugin. If you open up the /paypal-for-woocommerce/classes/wc-gateway-paypal-express-angelleye.php and go to line 1084 you’ll see where this is getting set in the request.
You can just hard code the value you want there for now, so change the line to…
'localecode' => 'de_DE',
That should do it for you. I’ll have it fixed in the 1.1.7 update so you’ll be able to update without missing a beat.
3. I have not seen any details about Pro for Germany. Can you provide a link for that?
Thread Starter
hyperV
(@hyperv)
Thanks Angelleye,
I changed it but nothing changed. I tried de_DE and de_DE/DE and got not the right result.
I investigated a bit and found out following on the developer site:
For e.g. US you need to use the link:
https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif
For Germany:
https://www.paypal.com/de_DE/DE/i/btn/btn_xpressCheckout.gif
For Austria:
https://www.paypal.com/de_DE/AT/i/btn/btn_xpressCheckout.gif
For Switzerland it seems PayPal provides only an english solution with following link:
https://www.paypal.com/en_US/CH/i/btn/btn_xpressCheckout.gif
Following fix was helpful:
I have hardcoded following in paypal-for-woocommerce.php:
LIne 434 and line 450: from $button_img = "https://www.paypal.com/".$button_locale_code."/i/btn/btn_xpressCheckout.gif";
to
$button_img = "https://www.paypal.com/de_DE/DE/i/btn/btn_xpressCheckout.gif";
That works. Would be great to have a fix for it in Version 1.7.
To Point 3 I have this information from a support technician at PayPal Germany I called yesterday having trouble with Pro functionality. He told me Pro V2.0 and V3.0 is not working with PayPal Germany of some security reasons. Tha is the reasons that they develop a new API called Plus. Have no further information on this. Want only make you aware on it for your plugin roadmap.
Cheers Josef
Thread Starter
hyperV
(@hyperv)
Second issue with PayPal express:
I get only the shipping address back from Paypal. Can you please provide a fix, that the shipping address is also the invoice address?
Than would be the workflow in woo commerce perfect.
Thanks Josef
Can you point me to the documentation showing those URLs for the button you’ve listed here? I’d like to look into that a little more.
When I browse https://www.paypal.com/de_DE/i/btn/btn_xpressCheckout.gif it loads the EC button just fine with German, but no message under the button. If I load https://www.paypal.com/de_DE/DE/i/btn/btn_xpressCheckout.gif then it loads the same button, but with a message.
So are you saying that you weren’t getting any button translation at all prior to hard-coding your change? If that’s the case then that would tell me your value for WP_LANG isn’t correct in WordPress. The way to confirm that would be to set it back how it was and then check the button URL when it gets displayed that way so we can see what’s getting output for $button_locale_code at that point.
As for the address issue, this has [already been addressed by one of my developers in our GitHub repo](https://github.com/angelleye/paypal-woocommerce/issues/157).
I have not not had a chance to fully test that yet, but you’re welcome to grab it early if you’d like to give it a shot.
Otherwise, it will indeed be included in our 1.1.7 update.
Thread Starter
hyperV
(@hyperv)
Try this
This is with text.
The Documentation is here:
When do you expect to release 1.17?
Hopefully by the end of the month, but I can’t guarantee it.