#cansozbir-checkout
1 messages · Page 1 of 1 (latest)
If you use Checkout, you should be be looking at the PaymentIntent's event
@pale iris are you talking about future payments for the subscription's invoices? Or on creation? Or something else?
it is One time purchase, with PaymentIntent, we are not using subscription flow.
So we have a code, that handles Succeeded event and gives the package to you.
But I want to know, if a user started the OTP, but didn't finished it.
I am not sure but, I believe I can do something like:
- On PaymentIntentCreated, write Incomplete to db
- On PaymentIntentSucceeded, update the field with Active
So I can know which users didn't finished their payments for OTP
Am I right?
Or is there a special PaymentIntent Event, gives me that the payment is incomplete
Because I can see that Incomplete payment on portal,
but when I click into it, there isn't anything like "incomplete" on payment intent event data here:
that won't really work
PaymentIntent is created when you create the Session today, so that doesn't mean they started OTP
My advice is to treat all orders as incomplete on Checkout Session creation and then handle the relevant events
but on this screenshot, I can see that the data comes with payment_intent.created
and I've tried going back and forh for three times to create the session three times,