How it works
When a capture request is made, Gr4vy checks whether reauthorization applies before attempting the capture:- Check that reauthorization is enabled for your account.
- Check the request. The capture request body must contain
"reauthorize_if_authorization_expired": true. - Check the payment method. The transaction must have a stored payment method.
- Check the authorization’s validity. Gr4vy checks whether the authorization being captured has passed its validity period, based on the card scheme and environment. See Validity periods below.
- If the new authorization succeeds, Gr4vy captures the new authorization and returns the new transaction. A new transaction ID is returned in the capture response, and the new transaction has a
reauthorized_from_transaction_idfield set to the ID of the previous transaction. Gr4vy also schedules an asynchronous void of the previous authorization. - If the reauthorization fails, Gr4vy continues to attempt to capture the previous authorization and returns the old transaction in the response.