#kalaLokia

1 messages · Page 1 of 1 (latest)

signal wrenBOT
hybrid pond
#

hi! let me check some things but I don't think it is; you'd generally put your information in e.g. cookies in the browser or metadata on the PaymentIntent object instead

#

I just tested it though and the params are not lost

#

e.g. I did

const {error} = await stripe.confirmPayment({
     elements, // elements instance
     redirect: 'always',
     confirmParams: {
       return_url:  "http://localhost:4242/a_url_i_am_looking_for?some_argument=foo"
      
     }
  });

and it redirects to
http://localhost:4242/a_url_i_am_looking_for?some_argument=foo&payment_intent=pi_xxxxx&payment_intent_client_secret=pi_xxxx_secret_yyyy&redirect_status=succeed
when it's done. So it already seems to work the way you want.

topaz walrus
#

but mine gets replaced

topaz walrus
hybrid pond
#

seems correct

topaz walrus
#

wait, I think I missed to reload static files.

#

😬😬😬 sorry

#

I did missed that.

#

It's working

hybrid pond
#

great!