Gateway JIT Funding Scenarios
You can use the Gateway JIT (Just-in-Time) Funding feature to participate in funding decisions. Using Gateway JIT Funding adds a layer of complexity to the transaction lifecycle because your gateway must receive and respond to transaction requests.
This page describes several Gateway JIT Funding transaction flows and where your gateway fits in each.
For more information on JIT Funding, see About Just-in-Time Funding.
Authorizations and clearings
Copy section link
An authorization occurs when a cardholder attempts to make a payment. If the authorization is successful, a clearing transaction follows, which actually moves the necessary funds.
When a cardholder attempts to make a purchase without using a PIN, the following occurs:
-
The merchant initiates the purchase attempt and sends an authorization message to the card network.
-
The card network sends an authorization message to the Marqeta platform.
-
The Marqeta platform sends a JIT Funding request to your gateway and includes relevant transaction data to assist in your decision-making process.
-
Your gateway makes a decision and responds by either approving or declining the funding request.
-
The Marqeta platform sends an authorization response to the card network.
-
The Marqeta platform sends a notification to you via a webhook that you can use to validate the authorization and update the account’s balance.
-
The card network sends an authorization response to the merchant.
If the authorization was approved, the following clearing process occurs:
-
The merchant submits a capture request to the card network.
-
The card network sends a clearing record to the Marqeta platform.
-
The Marqeta platform sends a clearing notification to you via a webhook.
-
The Marqeta platform completes the transaction.
PIN Debit and ATM Debit transactions
Copy section link
A PIN debit transaction occurs when a cardholder uses their PIN at a point of sale to make a purchase.
When a cardholder attempts to make a payment using their PIN, the following occurs:
-
The merchant initiates the purchase attempt and sends a PIN debit message to the card network.
-
The card network sends a PIN debit message to the Marqeta platform.
-
The Marqeta platform sends a JIT Funding request to your gateway and includes relevant transaction data to assist in your decision-making process.
-
Your gateway makes a decision and responds by either approving or declining the funding request.
-
The Marqeta platform sends a PIN debit response to the card network.
-
The Marqeta platform sends a PIN debit notification to you via a webhook that you can use to validate the PIN debit details and update the account’s balance.
-
The card network sends a PIN debit response to the merchant.
Withdrawing money from an ATM triggers a very similar flow. When a cardholder attempts to withdraw funds from an ATM, the following occurs:
-
The ATM sends an ATM withdrawal message to the card network.
-
The card network sends an ATM withdrawal message to the Marqeta platform.
-
The Marqeta platform sends a JIT Funding request to your gateway and includes relevant transaction data to assist in your decision-making process.
-
Your gateway makes a decision and responds by either approving or declining the funding request.
-
The Marqeta platform sends an ATM withdrawal response to the card network.
-
The Marqeta platform sends an ATM withdrawal notification to you via a webhook that you can use to validate the ATM withdrawal details and update the account’s balance.
-
The card network sends an ATM withdrawal response to the ATM.
Refunds
Copy section link
A refund occurs when a cardholder requests that the merchant return money from a previous transaction after the clearing process has completed.
When a cardholder asks a merchant to refund a prior transaction, the following occurs:
-
The merchant initiates a refund request by sending the request to the card network.
-
The card network sends the refund request to the Marqeta platform.
-
The Marqeta platform sends a refund notification to you via a webhook. Your system updates the account balance data it holds using transaction data in the notification.
-
The Marqeta platform completes the transaction.
Reversals
Copy section link
A reversal occurs when a merchant cancels a transaction after the authorization succeeds but before the clearing process occurs.
When a merchant requests a reversal, the following occurs:
-
The merchant cancels the transaction prior to capture.
-
The merchant sends a reversal message to the card network.
-
The card network sends a reversal message to the Marqeta platform.
-
The Marqeta platform sends a reversal notification to you via a webhook. Your system updates the account balance data it holds using transaction data in the notification.
-
The Marqeta platform completes the transaction.
Tips
Copy section link
A tip transaction occurs when an original authorization amount is updated with a new amount, such as when a cardholder makes a purchase at a restaurant and then adds a tip on top of the authorization amount.
When a cardholder adds a tip to the original authorization amount, the following occurs:
-
The merchant initiates the purchase attempt and sends an authorization message to the card network.
-
The card network sends an authorization message to the Marqeta platform.
-
The Marqeta platform sends a JIT Funding request to your gateway and includes relevant transaction data to assist in your decision-making process.
-
Your gateway makes a decision and responds by either approving or declining the funding request.
-
The Marqeta platform sends an authorization response to the card network.
-
The Marqeta platform sends a notification to you via a webhook that you can use to validate the authorization and update account balances.
-
The card network sends an authorization response to the merchant.
-
The merchant calculates the transaction total, including the tip.
-
The merchant submits a capture request to the card network.
-
The card network creates a clearing record that replaces the authorization amount with the new amount that includes the tip.
-
The card network sends the clearing record to the Marqeta platform.
-
The Marqeta platform sends a clearing notification to you via a webhook. Your system makes any necessary updates to the account balance data it holds.
-
The Marqeta platform completes the transaction.
Automated fuel dispenser (AFD) transactions
Copy section link
An automated fuel dispenser (AFD) transaction occurs when a cardholder purchases fuel directly from the fuel dispenser.
When a cardholder initiates an AFD transaction, the following occurs:
-
Before the cardholder pumps the fuel, the merchant initiates a fuel transaction and sends an authorization request to the card network.
-
The card network sends the authorization request to the Marqeta platform.
-
The Marqeta platform sends a JIT Funding request to your gateway and includes relevant transaction data to assist in your decision-making process.
-
Your gateway makes a decision and responds by either approving or declining the funding request.
-
If the authorization request is successful, the Marqeta platform sends an authorization response to the card network.
-
The Marqeta platform sends a notification to you via a webhook that you can use to validate the authorization and update account balances.
-
The cardholder pumps the fuel.
-
The automated fuel dispenser sends an authorization advice message to the card network.
-
The card network sends an authorization advice message to the Marqeta platform to update the original authorization to the final amount of the fuel purchase.
-
The Marqeta platform sends an authorization advice message to you via a webhook.
-
Your system makes any necessary updates to the account balance data it holds.
-
The Marqeta platform sends an authorization advice acknowledgement to the card network.
-
The card network receives the authorization advice acknowledgement from the Marqeta platform.
-
The merchant submits a capture request to the card network for the final purchase amount.
-
The card network sends a clearing record to the Marqeta platform.
-
The Marqeta platform sends a clearing notification to you via a webhook.
-
The Marqeta platform completes the transaction.