• Resolved sadeeke

    (@sadeeke)


    As the subject line stated; “New update for Woocommerce PayPal Payment gateway is not working.” Please see the logs below:

    2021-09-30T11:33:31+00:00 WARNING Failed to create order. PayPal API response: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-MISSING_SHIPPING_ADDRESS
    2021-09-30T11:33:31+00:00 ERROR Order creation failed: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-MISSING_SHIPPING_ADDRESS

    The “MISSING_SHIPPING_ADDRESS” part is the error that pops up when I am trying to create a payment, it’s truly tough. The previous version wasn’t saying that even though I used the same APIs I am using now. None the less, Just to be safe I created 2 other APIs; One using the plugin and the other which I created manually inside PayPal Developer Portal. The error was still popping up. I tried creating multiple tickets to find me an agent but nothing is working. The agent I was previously talking with just ditched me after she asked me to create an account for her to run tests on. Is there any one who knows how to fix this please?

    and before you suggest it; I already spoke with PayPal Technical Department and they told me something about the address in the code is missing, I then told them I am using a plugin and as u may have guessed it; the core of the problem points the “Woocommerce PayPal Payment Gateway” plugin.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @sadeeke,

    This error message has nothing to do with your API credentials but instead with the billing/shipping information from the checkout sent to PayPal being incomplete.
    There is currently an issue with checking out to countries with an optional zip code for example: https://github.com/woocommerce/woocommerce-paypal-payments/pull/224

    Which country were you trying to check out to and could you provide us a screenshot of your checkout? Thanks!

    Kind regards,
    Niklas

    Thread Starter sadeeke

    (@sadeeke)

    Yes, finally I’m getting somewhere. I am currently operating in “Jamaica”, which has an optional zip code field. I’m assuming I need to change that field from “optional” to “required”? But is there any other way to fix this this at the moment? @niklasinpsyde

    Thread Starter sadeeke

    (@sadeeke)

    *UPDATE* @niklasinpsyde
    I added a snippet that made all countries zip/postal code required:

    // Make Postal Code Required for all Countries
    add_filter('woocommerce_get_country_locale', function($locales){
        foreach ($locales as $key => $value) {
            $locales[$key]['postcode']['required'] = true;
        }
        return $locales;
    });

    The code worked but the error is still there so I have a question; Did you guys disable the function that caused optional zip code fields to not be recognized or did you straight up abandon us? Because I tried USA and it was working but when I tried Jamaica after making the zip code field required, the error was still present. Is there a solution to this?

    • This reply was modified 3 years, 1 month ago by sadeeke.
    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @sadeeke

    this issue was resolved in our 1.6.2 release.
    Since we haven’t heard back from you, I’m going to mark it as resolved.
    In case you’re still having problems, feel free to let us know!

    Kind regards,
    Joost

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘New update for Woocommerce PayPal Payment gateway Plugin is not working.’ is closed to new replies.