#cansozbir-checkout

1 messages · Page 1 of 1 (latest)

dry current
#

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?

pale iris
#

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:

  1. On PaymentIntentCreated, write Incomplete to db
  2. 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:

dry current
#

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

pale iris
#

and I've tried going back and forh for three times to create the session three times,

dry current
#

Still you're doing this incorrectly

#

Ignore payment_intent.created entirely if you use Checkout