#DMFist
1 messages · Page 1 of 1 (latest)
No that event is only sent once funds are captured
You can test this out in test mode with stripe listen to see which events are generated when: https://stripe.com/docs/cli/listen
Yep i noticed that
Is there a recommended way to handle afterpay with manual capture payment intents?
What do you mean exactly? What part of fulfillment would be different?
I was planning to capture the funds on the payment_intent.succeeded event
but it sounds like I will never get that
What's your use-case for using manual capture?
it's a requirement for the system I'm working in
Are you confirming on creation?
Or doing that separately too?
We have this section that may help: https://stripe.com/docs/payments/afterpay-clearpay/accept-a-payment?platform=web&ui=API#manual-capture
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.
confirm happens separately
Yeah so listen to payment_intent.amount_capturable_updated events
Then you will know when you can capture
See that above link
would charge.succeeded make sense here as well?
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
okay - that event always occurs for afterpay payments once they are authorized?
Yeah
okay cool, will manual capture have any effect on payment_intent.payment_failed event?
Off the top of my head, it shouldn't, but you can test: https://stripe.com/docs/payments/afterpay-clearpay/accept-a-payment?platform=web&ui=API#testmode-guide
cool thanks for the help 👍