5 minute read
Accounting errors can arise if the Just-in-Time (JIT) Funding gateway on your system times out. This page describes how to manage such occurrences.
Identifying and resolving timeouts
Copy section link
When a transaction requires Gateway JIT Funding (other than by way of 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:
The Marqeta platform calls your gateway for a $100 authorization.
After three seconds without receiving a response, the Marqeta platform times out the request.
The Marqeta platform declines the transaction to the card network.
A few seconds later, your system finishes processing the authorization and attempts to respond with an authorization for $100.
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.
The Marqeta platform webhooks provide a solution for identifying these timeouts so you can resolve out-of-sync issues in whatever way your business model requires. Webhooks are push-style event notifications that the Marqeta platform sends to an endpoint on your system (not the same as the JIT Funding gateway endpoint). The Marqeta platform sends notifications asynchronously less than a second after each transaction completes and provide information to identify JIT Funding requests that timed out.
The following sample notification shows that a GPA funding order was declined as a result of a timed-out JIT Funding request.
Take note of the
A value of
true indicates that the associated JIT Funding request timed out.
Other important information contained in these webhook notifications includes:
Amounts and funding source
Token of the preceding related transaction
Is this helpful?
For more information, see Gateway JIT Funding Messages.