#afenster - PI confirmation error

1 messages · Page 1 of 1 (latest)

keen bladeBOT
inner dirge
#

@thick briar let's chat here

thick briar
#

OK

#

Not sure how to chat. New to Discord.

inner dirge
#

All good, no worries!

#

Ah, looks like this failed because of the return_url value

thick briar
#

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",
},
});

inner dirge
#

The return URL in your request was return_url: "/checkout"

thick briar
#

So it needs to be the full url, beginning with https://

inner dirge
#

correct!

thick briar
#

Also, how did you figure that out? Where do you see the error?

inner dirge
#

or, as in the example, http if you're using localhost

#

The error here is url_invalid - return_url

#

afenster - PI confirmation error