79418640

Date: 2025-02-06 16:26:17
Score: 0.5
Natty:
Report link

The problem here was the name of the parameter passed to the confirmPayment function. It should have looked like the below:

const {error} = await stripe.confirmPayment({
                elements: expressElements,
                clientSecret,
                confirmParams: {
                    return_url: window.location.href,
                },
                redirect: 'if_required',
            });
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Josh Bolton