#rizvan_api

1 messages ¡ Page 1 of 1 (latest)

wanton burrowBOT
desert fernBOT
#

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.

wanton burrowBOT
#

👋 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/1235944124520071218

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

unique pike
#

thanks

#

So if I am trying to create a checkout session i will have to create product each time?

#

Or will duplicate entry be restricted?

tidal glen
#

No you can reuse a product

#

Just store it's id somewhere

#

In your database for example

#

Then you can re-use

unique pike
#

Okay thanks

#

How can we pass customer details to checkout session api?

tidal glen
#

What details specifically are you referring to?

unique pike
#

Meaning name,email, phone

tidal glen
#

This is an existing customer object in Stripe?

unique pike
#

No

#

New

tidal glen
#

Ok well you'll need to create the customer object first

#

With those details

unique pike
#

okay but since we dont have search option does that mean we will have to create customer object everytime?

tidal glen
#

No you can re-use customers too

unique pike
#

okay.... same store it somewhere like in database?

tidal glen
#

Yeah

#

That way you don't need to call the stripe api for these things

#

It'll speed up your integration too

#

Less api calls

unique pike
#

This is a different question..... can we get the payment status of a payment made if we send the payment link using paymentlink api

#

because we need to send the payment link to our customers so they can pay later

#

and we cannot add customer details in payment link api

#

what can be done here?

tidal glen
#

Yeah I recommend listening for webhook events to be notified in your app each time a payment is successful

#

You can listen for payment_intent.succeeded

#

Or checkout_session.completed

unique pike
#

No other way using just API's?

tidal glen
#

I mean you can poll the api

#

But that's super inefficient

#

Webhooks are always better for this sort of thing

unique pike
#

Yes right!

unique pike
#

okay got it

tidal glen
#

Yeah the alternative to webhooks is to poll the api on a schedule to check for successful payments

#

Not recommended at all

unique pike
#

So we cannot check based on the ID of the paymentlink?

tidal glen