• Resolved dcarlier

    (@dcarlier)


    I updated wordpress to 5.8 and mollie payments for woocommerce to 5.6.2, getting this error since then:

    2021-07-22T19:55:07+00:00 DEBUG Creating payment object: type Order, first try failed: [2021-07-22T19:55:07+0000] Error executing API call (422: Unprocessable Entity): The redirect URL is invalid. Field: payment.redirectUrl. Documentation: https://docs.mollie.com/reference/v2/orders-api/create-order
    2021-07-22T19:55:07+00:00 DEBUG Creating payment object: type Order, did not fail because of incorrect customerId, so trying Payment now.
    2021-07-22T19:55:07+00:00 DEBUG Creating payment object: type Payment, creating a Payment.
    2021-07-22T19:55:07+00:00 DEBUG mollie_wc_gateway_ideal : Order 1843 returnUrl: /afrekenen/order-received/xxxx/?key=wc_order_xxxxxxxxxxx&utm_nooverride=1&order_id=xxxx&filter_flag=onMollieReturn
    2021-07-22T19:55:07+00:00 DEBUG mollie_wc_gateway_ideal : Order xxxx webhookUrl: https://www.easycell.nl/wc-api/mollie_wc_gateway_ideal?order_id=xxxx&key=wc_order_xxxxxxxxD&filter_flag
    2021-07-22T19:55:07+00:00 DEBUG Array
    (
        [amount] => Array
            (
                [currency] => EUR
                [value] => 373.89
            )
    
        [description] => Order xxxx
        [redirectUrl] => /afrekenen/order-received/xxxx/?key=wc_order_xxxxxxxxxxxxx&utm_nooverride=1&order_id=xxxx&filter_flag=onMollieReturn
        [webhookUrl] => https://www.easycell.nl/wc-api/mollie_wc_gateway_ideal?order_id=xxxx&key=wc_order_xxxxxxxx&filter_flag
        [method] => ideal
        [issuer] => ideal_ABNANL2A
        [locale] => nl_NL
        [dueDate] => 
        [metadata] => Array
            (
                [order_id] => xxxx
            )
    
    )

    Do you have any idea what happened here? Not being able to make any payment requests now (apart from rembours)

    • This topic was modified 3 years, 4 months ago by dcarlier.

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

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

    (@niklasinpsyde)

    Hi @dcarlier,

    As the error suggests, the redirect URL is not correct.
    It looks like this:
    [redirectUrl] => /afrekenen/order-received/1843/?key=wc_order_mq3zUkHGUqYBD&utm_nooverride=1&order_id=1843&filter_flag=onMollieReturn

    When it should look like this instead:
    [redirectUrl] => https://www.easycell.nl/afrekenen/order-received/1843/?key=wc_order_mq3zUkHGUqYBD&utm_nooverride=1&order_id=1843&filter_flag=onMollieReturn

    Since Mollie doesn’t know what URL to return the user to after payment, it won’t allow you to create an order in the first place.
    This seems like a conflict with another plugin. Does the behavior persist when you disable all other plugins except for WooCommerce and Mollie? The Rembours gateway is from a different plugin and does not use the Mollie logic, so it may not be affected by the behavior.
    If the issue persists with only Mollie and WooCommerce active, can you please send us a copy of your WooCommerce system report as described here?:
    https://mollie.inpsyde.com/docs/how-to-request-support-via-website-widget/
    Thanks!

    Kind regards,
    Niklas

    Thread Starter dcarlier

    (@dcarlier)

    Thank you Niklas, that was indeed the culprit. For others that might have the same issue. There was a combination of “Make paths relative” and “Mollie for woocommerce” that made the redirect url a relative path instead of an absolute one.

    Not sure why this worked for 2 years, and decided to change with the 5.8 update of wordpress. But it seems solved now. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error executing API call (422: Unprocessable Entity): The redirect URL is invali’ is closed to new replies.