#kevin_code

1 messages ยท Page 1 of 1 (latest)

pale trellisBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1400398599002787840

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

unborn bough
#

hi there!

reef sluice
#

On my side I want to show the PaymentElement form before creating the payment or setup intent, it's not possible?

#

I can't see a mode props like in web to choose either payment| setup | subscription ๐Ÿค”

unborn bough
#

On my side I want to show the PaymentElement form before creating the payment or setup intent, it's not possible?
for the Payment Element it's possible yes. but I though you were talking about the Payment Sheet?

reef sluice
#

Oh yes I want to use PaymentElement maybe I read the wrong doc? Because I can't find other doc about PaymentElement ๐Ÿ˜…

unborn bough
#

the link you shared is using the Payment Sheet.

#

also known as the "mobile Payment Element"

#

the "Payment Element" is something else

reef sluice
#

On the React.js app, I want to use PaymentElement from @stripe/react-stripe-js
What's the equivalent for React Native then?

unborn bough
#

sorry, Stripe naming can be a bit confusing. but your code is calling initPaymentSheet, so we call this the Payment Sheet.

#

anyways, I don't think this integration supports showing the PaymentSheet before creating the PaymentIntent.

#

so you first need to create the PaymentIntent, then use the client secret to init the Payment Sheet

reef sluice
#

Oh okay so no way to create payment intent or setup intent in a deferred way like you do in web? It's not planned for future releases?

unborn bough
#

let me double check.

#

so it looks like it is supported. sorry for the confusion earlier.

reef sluice
#

Ah yeah thanks a lot I missed that when checking the type, couldn't find the doc either, will check this ๐Ÿ™

#

Thank you so much, you can close this thread if you want and I'll come back if I have some trouble implementing it on React or React Native ๐Ÿ˜„