#cgy
1 messages · Page 1 of 1 (latest)
there wouldn't be a checkout.session.failed event
I would think only the checkout.session.completed is important since you would need that to fulfill orders
is there a reason why you want to know if it failed?
Our app need to know weather the card create successfully
Beacuse the Webhook will be delayed right?
Our app need to know weather the card create successfully
that's where you would listen to checkout.session.completed
Before I revice the event of complete, I don't know the card status
I do listen to completed
can you give me an example scenario, maybe that'll help me better understand your use case?
Ok, when the Webhook delays a day or a long time, during this time how can I sure the card status
Of course during my test I can receive it quickly, just in case
if you're concerned about missing events, what you can do at the end of the day is to list all checkout.session.completed events for that day : https://stripe.com/docs/api/events/list and validate if they've been received and processed
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
emm, what about event "expired", shoul I listen to this event? In my understanding expired means failed.
i think the question to ask is what would you want to use the event checkout.session.expired for?
expired doesn't necessarily mean failed - it just means the customer never completed payment within the timeframe. It could be that the customer never attempted payment, or they attempted payment and failed
Oh, I know. If they haven't fill the form in a certain time. Your sys push expired event.
yep, that's correct
I understand what should I do. Thank you
Hi,bother you again. I want to add a function: charge monthly.
Is this part of docs work?
Do you mean you want to use Checkout Sessions to collect payments for monthly subscriptions?
Yes monthly subscriptions
have you already created a Monthly Price?
No
Then that's your starting point: https://stripe.com/docs/products-prices/pricing-models
You mean I sholud start with https://stripe.com/docs/products-prices/pricing-models then use the https://stripe.com/docs/recurring-payments#accept-recurring-payments
is that right?