#paige_best-practices

1 messages ยท Page 1 of 1 (latest)

hollow hollowBOT
#

๐Ÿ‘‹ 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/1447502145040547894

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

calm sky
#

๐Ÿ‘‹ Happy to help

zealous wing
#

Thanks :)

calm sky
#

It's not mandatory but recommended depending on your use cases. If your website is down, Stripe has a retry mechanisme

#

when a user gets redirected to pay, once they come back to my site, can't I just use stripe api for whether the subscription I sent them to has been paid for or not?
It's possible to do sync calls for Stripe APIs for sure without using Webhooks

#

There is nothing blocks you from accepting payment with Stripe without using webhooks

#

Webhooks becomes necessary for async payments

zealous wing
#

could you elaborate what you mean exactly by sync vs async payments? (or link something that explains it?) I'm not sure

#

Well - more so to reword, which cases (e.g. payment types or product types) would be sync and which would be async payments?

calm sky
#

Card Payments are sync for example, Bank transfers and Debits are async

#

It depends on the type of the payment methods.

zealous wing
#

So essentially, once I accept bank transfer and debit (for example) as payment options I should in fact start using webhooks and not just rely on setting it to pending in my own db for a while and then checking a couple of days later?

calm sky
#

Yes exactly

#

You set a webhook endpoint and simply get notified when you receive the Payment, or you pull periodically/daily the PaymentIntent status untill it becomes succeeded.

zealous wing
#

alright :)

#

Thanks for the help!

calm sky
#

Welcome!