#afenster - PI confirmation error
1 messages · Page 1 of 1 (latest)
@thick briar let's chat here
My code comes from the sample application:
const stripe = useStripe();
const { error } = await stripe.confirmPayment({
elements,
confirmParams: {
// Make sure to change this to your payment completion page
return_url: "http://localhost:3000",
},
});
The return URL in your request was return_url: "/checkout"
So it needs to be the full url, beginning with https://
correct!
Also, how did you figure that out? Where do you see the error?
or, as in the example, http if you're using localhost
I pulled up the details on my end but you can see your logs for failed and successful request using the Dashboard: https://dashboard.stripe.com/test/logs
The error here is url_invalid - return_url
afenster - PI confirmation error