Hello,
We are interested in knowing when a pre-authorization has expired. To that end, we've noticed two things:
1. There is no specific attribute for an expired Charge on the Charge object itself.
2. I didn't see any mention of a specific event for a un-captured Charge (a.k.a., a pre-authorization) expiring.
For #1, we're currently determining a Charge is expired if it's been refunded, but not captured. Something like this:
def expired?
stripe_charge.refunded? && !stripe_charge.captured?
end
Is that a safe assumption/logic correct?
For #2, we're guessing that since there's no explicit
expired attribute, there's no explicit corresponding event. e.g., there's no a
charge.expired event. But there is
a charge.refunded event. Could we listen for that event, and then use logic like #1 (above) to determine that the pre-authorization just expired?
Thank you,
Steven