#noor-balaum_code

1 messages ¡ Page 1 of 1 (latest)

vestal hornetBOT
north zincBOT
#

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.

vestal hornetBOT
#

👋 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.

boreal sundial
#

and every checkout he create customre new

calm yacht
#

I suspect your backend code likely generates a new Customer object (cus_xxx) each time you create an intent?

boreal sundial
#

This is what happens I think

calm yacht
#

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

boreal sundial
#

Ok and how to do this??

#

i cant find it in docs

calm yacht
#

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

boreal sundial
#

i dont know how give me example codes

calm yacht
#

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

calm yacht
boreal sundial
#

umm i will try give me time dont close the chat

#

that correct in server??

calm yacht
#

Looks good, the call to retrieve the Customer is redundant though? You already have the ID

boreal sundial
#

i will update in RN and see what happen

boreal sundial
#

its done PoggersRow

#

thanks very much