#noor-balaum_code
1 messages ¡ Page 1 of 1 (latest)
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.
- noor_reactnative-questions, 3 days ago, 38 messages
- noor_android-setupintent, 3 days ago, 22 messages
- noor_saved-pm-reactnative, 3 days ago, 35 messages
đ 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/1255122650200670280
đ Have more to share? Add details, code, screenshots, videos, etc. below.
and every checkout he create customre new
I suspect your backend code likely generates a new Customer object (cus_xxx) each time you create an intent?
Yep as I suspected. So you'd need to persist the Customer object (cus_xxx) you want to use in your payment and re-use that rather than generating a new one each time
Yeah it's not really documented as it's an itegration detail. You'd likely want to update your /paymentsheet endpoint to accept parameters (like customer) and then from your RN app pass the cus_xxx ID you want to use
i dont know how give me example codes
Then in that endpoint if there's a customer parameter in req.body then use that when creating the Ephemeral Key and Payment Intent instead of creating a new Customer object
Not really no. Take a look at the Express documentation for how to read the request body
Looks good, the call to retrieve the Customer is redundant though? You already have the ID
i will update in RN and see what happen
