MB WAY via UPM throws JavaScript error when customer cancels payment
-
Hello,
I am using Payment Plugins for Stripe WooCommerce with MB WAY enabled through Universal Payment Method (UPM).
When the customer approves the MB WAY payment, everything works correctly.
However, when the customer cancels/rejects the payment in the MB WAY app, the checkout returns this frontend error:
Cannot read properties of null (reading 'type')From Stripe/webhook logs, the flow appears to be normal for a rejected payment. For example:
2026-04-06T21:42:19+00:00 Webhook notification received: Event: payment_intent.requires_action 2026-04-06T21:42:33+00:00 Webhook notification received: Event: charge.failedIt looks like the payment is correctly marked as failed when the customer cancels it, but the checkout frontend does not handle that state properly and throws the JavaScript error instead of showing a normal payment failure message.
Could you please confirm whether this is a known issue with MB WAY via UPM, especially on the WooCommerce checkout blocks, and whether there is any recommended fix or workaround?
Thank you.
You must be logged in to reply to this topic.
