#kevin_code
1 messages ยท Page 1 of 1 (latest)
๐ 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.
- kevin_code, 16 hours ago, 28 messages
hi there!
you can set the payment_method_type when you create the PaymentIntent on the backend: https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_types
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 ๐ค
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?
Oh yes I want to use PaymentElement maybe I read the wrong doc? Because I can't find other doc about PaymentElement ๐
I was reading this doc: https://docs.stripe.com/payments/accept-a-payment?platform=react-native&ui=payment-sheet#react-native-flowcontroller
the link you shared is using the Payment Sheet.
also known as the "mobile Payment Element"
the "Payment Element" is something else
On the React.js app, I want to use PaymentElement from @stripe/react-stripe-js
What's the equivalent for React Native then?
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
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?
let me double check.
wait, I found this, which may be what you are looking for: https://docs.stripe.com/payments/mobile/accept-payment?platform=react-native&type=payment#initialize-paymentsheet
so it looks like it is supported. sorry for the confusion earlier.