Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter MisterR

    (@mister_r)

    We suppose this issue doesn’t happen when the Vipps/MobilePay Recurring Payments gateway is used, because from the Vipps payment screen we first get redirected to https://server.com/vipps-mobilepay-recurring-payment/?order_id=XXX&key=YYY, and only then to https://server.com/kasse-standard/order-received/XXX/?key=YYY.

    This confirms once again that you have combined two separate plugins into one package.

    Plugin Author Iver Odin Kvello

    (@iverok)

    This plugin used to be two separate plugins; that is true; and since these provide two separate payment gateways and uses two different payment APIs they do treat the payment process slightly differently.

    However, the Checkout screen should absolutely be capable of handling order-received events and has in fact done so since 2022 – back then we used something very much like your filter to dispatch all order-receiveds to the standard checkout; making the Vipps one slightly less self-contained. This caused some problems in some very rare setups.

    https://server.com/kasse/order-received/XXX/?key=YYY *should* in fact exist, as it is a Woo endpoint for the /kasse/ page which is a normal WP page. It should be handled exactly like the standard checkouts’ endpoint, and in fact in exactly the same way, by dispatching to the old shortcode based checkout. If it didn’t exist you should have gotten a 404 here, really.

    This *may* have something to do with your rewrite rules, so you may try to go to your Settings/Permalinks and press “save” there without changing anything. If not, it would be great if you could tell us what versions you are using of Woo and WordPress, if you are using Gutenberg or the old checkout screen, and if you are using any other “Checkout” style plugin that modifies the normal checkout logic.

    Aside from that, your filter for ‘woocommerce_get_return_url’ is correct and should not cause any issues as long as you don’t delete the original checkout page or something like that.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.