#Constant
1 messages · Page 1 of 1 (latest)
Hi there, how can I help?
Hi Jack!
I have a server side functions that returns a paymentIntent and a clientSecretKey. In my mobile application these are used to present the payment sheet for stripe. I would like to know if it's possible to redirect a user on our website to the payment page, with the paymentIntent.
So your question is whether you can use the clientSecretKey that your server returns to render a PaymentElement in your webpage?
Yes I believe so. Apologies if my wording is incorrect. So what I'd want to do, if the user clicks on buy now, my server returns the paymentIntent and clientSecretKey and a navigate them to the paymentPage
OK, you can follow this guide to integrate a PaymentElement in your webpage (https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements)
Basically you should just pass the clientSecretKey to elements and let Stripe.js to render the PaymentElement for you.
Ah great! Thank you! Have a good day/night.