• Resolved ndrw

    (@ndrw)


    Hello,

    So far the gateway was working well. Now I have a new scenario – the customer hasn’t paid for the order (status is awaiting payment) and we send him the payment page that is available in the woocommerce admin above the “awaiting payment” order status. The link is in the format:
    (domain)/checkout/order-pay/(order-number)/?pay_for_order=true&key=wc_order_(key)

    The customer goes to that page and tries to pay for the order.
    If the selected payment method IS NOT Revolut (but the Revolut gateway is on), then the payment process get’s stuck – i.e. the page is blocked by the block UI and nothing happens.

    I tried to debug the issue.
    There is no server call – so the process get’s stuck at the javascript level.

    The difference between this checkout and the normal checkout is that there is a different form:
    – on the normal checkout page the form is $checkout_form: g(“form.checkout”)
    – on the order-pay checkout page the form is $order_review: g(“#order_review”)

    The Revolut gateway javascript hooks into the latter but not into the former.

    On the order-pay checkout page I can see that:

    in revolut.js

    $order_review.on(‘submit’, function (e) {})

    function gets triggered. This function is not triggered on the regular checkout page.
    It seems to me that the prevent default in the above function is stopping the checkout action and this is probably the reason for the checkout to get stuck at the javascript level.

    If I de-activate the Revolut payment plugin – the checkout goes through with no problem.

    The plugin works fine on a regular checkout page. The reason is probably that there is a different form there and the order_review function is not triggered there.

    For now I had to turn off the Revolut gateway.
    Please let me know if you have a fix.

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author revolutbusiness

    (@revolutbusiness)

    Hello there,

    Thanks for your ticket. This issue has been resolved on the latest version of the plugin, please update the plugin and test again.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Awaiting payment order payment page – order is not processed’ is closed to new replies.