Note
This page applies only to Gateway JIT Funding and does not apply to Managed JIT Funding. For more information on JIT Funding, see About Just-in-Time Funding.
This page applies only to Gateway JIT Funding and does not apply to Managed JIT Funding. For more information on JIT Funding, see About Just-in-Time Funding.
Identifying and resolving timeouts
When a transaction requires Gateway JIT Funding (other than due to a force capture), the Marqeta platform delays the response to the card network and sends a request to your JIT Funding gateway. Because the card network requires a timely response from the Marqeta platform, there is a timeout limit on the response from your gateway. If your gateway doesn’t respond to the JIT Funding request within three seconds, the Marqeta platform declines the transaction to the card network. Whenever a timeout occurs, the potential arises for an accounting error in your system. For example, consider the following scenario:1
The Marqeta platform calls your gateway for a $100 authorization.
2
After three seconds without receiving a response, the Marqeta platform times out the request.
3
The Marqeta platform declines the transaction to the card network.
4
A few seconds later, your system finishes processing the authorization and attempts to respond with an authorization for $100.
5
Unless your system identifies the timeout and reverses the authorization for $100, it may become out of sync with the actual state of the transaction and account balance.
gateway_log.timed_out field. A value of true indicates that the associated JIT Funding request timed out. Other important information contained in these webhook notifications includes:
- Transaction token
- Transaction type
- Transaction state
- Amounts and funding source
- Token of the preceding related transaction
JSON