• Resolved YAHMAN

    (@back2nature)


    Hi,

    There is a bug in EDD 2.11.

    includes> gateways> paypal> scripts.php
    line: 82

    ‘locale’ => urlencode (get_locale ()),

    I am Japanese.
    “ja” is displayed by get_locale ().
    I get an error (400) when calling PayPal JavaScript.

    If there is an error, the payment button will not be displayed.

    I rewrote get_locale () to “ja_JP”.
    There are no errors.
    The payment button is displayed.

    Is there a possibility of error in other languages?

    The PayPal local code is at the URL below.
    https://developer.paypal.com/docs/api/reference/locale-codes/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chris Klosowski

    (@cklosows)

    Thanks for the report @back2nature.

    I’ll get this logged so we can get a fix in place. The only languages that should pose an issue are the ones that WordPress is not using a fully formatted locale code for. We’ll work up a solution to go out in the next release.

    Thread Starter YAHMAN

    (@back2nature)

    Thank you for your reply.

    I’m looking forward to the next update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2.11 PayPal locale error’ is closed to new replies.