#noor_saved-pm-reactnative
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1253752528437379246
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi
how can i add this in my app react native
but i use with firebase
i dont know how for payment in app its ok but card not saved
I'm not really sure what you're asking. Can you spend a bit of time to explain? These short single sentences are hard to gain context from
wait
I have an application in React native and I use stripe to pay with it like this interface https://docs.stripe.com/payments/accept-a-payment?platform=react-native&ui=payment-sheet
You can see it in the link
But I want the payment method to be saved like the one in the picture above, but I do not know why it is not saved, and I do not know if it has anything to do with firebase and firestore because I use them to log in and customer accounts.
?
hello?
What does your form look like right now?
You've already implemented this right?
Like, you have a fucntional payment form that you can tinker with, correct?
Yes, but I don't know why the card is not saved
What do you mean the card isn't saved?
useEffect(() => { const initializePaymentSheet = async () => { try { const paymentIntent = await fetchPaymentSheetParams(); const { error } = await stripe.initPaymentSheet({ paymentIntentClientSecret: paymentIntent.paymentIntent, merchantDisplayName: 'BALAUM SHOP', }); if (!error) { console.log('Initiated payment sheet successfully'); setPaymentSheetReady(true); } else { console.error('Error in payment sheet init:', error); } } catch (error) { console.error('Error initializing payment sheet:', error); } }; initializePaymentSheet(); }, [total]);
Are you not seeing a Payment Method pop up in the Stripe Dashboard?
i meant not saved same this photo if me try open checkout again
no for every payment he create a new cusomre
customre*
Okay, so the Payment Method is being saved, but it's not showing up in your payment form. Correct?
Nothing is saved, I think, because each new payment is created (a new customer ID).
What do you mean nothing is saved?
wait plz
You too ๐
