#DMFist

1 messages · Page 1 of 1 (latest)

distant cobaltBOT
livid fractal
#

No that event is only sent once funds are captured

flat gyro
#

Yep i noticed that

#

Is there a recommended way to handle afterpay with manual capture payment intents?

livid fractal
#

What do you mean exactly? What part of fulfillment would be different?

flat gyro
#

I was planning to capture the funds on the payment_intent.succeeded event

#

but it sounds like I will never get that

livid fractal
#

What's your use-case for using manual capture?

flat gyro
#

it's a requirement for the system I'm working in

livid fractal
#

Are you confirming on creation?

#

Or doing that separately too?

#

After the authorization succeeds, the PaymentIntent status transitions to requires_capture. To capture the authorized funds, make a PaymentIntent capture request. The total authorized amount is captured by default—you can’t capture more than this, but you can capture less.

flat gyro
#

confirm happens separately

livid fractal
#

Yeah so listen to payment_intent.amount_capturable_updated events

#

Then you will know when you can capture

#

See that above link

flat gyro
#

would charge.succeeded make sense here as well?

livid fractal
#

You're talking about for the first installment?

#

You might could do that. I haven't tested that

#

But payment_intent.amount_capturable_updated is the most straightforward

flat gyro
#

okay - that event always occurs for afterpay payments once they are authorized?

livid fractal
#

Yeah

flat gyro
#

okay cool, will manual capture have any effect on payment_intent.payment_failed event?

livid fractal
flat gyro
#

cool thanks for the help 👍