Support » Plugin: PayPal for WooCommerce » PayPal Express button configuration not works properly

  • Resolved hyperV

    (@hyperv)


    Hi there,

    I have some issues to get the config done.

    1. At the checkout page I like not showing the credit card button. I know I need to delete the tick on – Allow customers to checkout without a PayPal account using their credit card -. I have done this but the button persists. I need to do it, because in Germany this function is not available.
    2. I like to change the button for express checkout to the german version on the product. How can I do it? Local settings in WP in de-DE but it switches not to german. Is this hardcoded? Only in the checkout site I was able to change it by uploading the button to my site.
    3. PayPal will release in Q2 or Q3 PayPal Plus the german version of pro. Will your plugin support this?

    From the technical perspective the flow works fine, that is only the look and feel.
    Many thanks for quick feedback

    Josef

    https://wordpress.org/plugins/paypal-for-woocommerce/

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    Plugin Contributor angelleye

    (@angelleye)

    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

    Plugin Contributor angelleye

    (@angelleye)

    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.

    Plugin Contributor angelleye

    (@angelleye)

    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?

    Plugin Contributor angelleye

    (@angelleye)

    Hopefully by the end of the month, but I can’t guarantee it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PayPal Express button configuration not works properly’ is closed to new replies.