Gateway JIT Funding implementation sample code
Marqeta offers Java sample code to demonstrate how to implement Gateway Just-in-Time (JIT) Funding. You can also use the sample code to learn about how real-world transactions work, even if you do not plan to implement JIT Funding in your program. The sample code creates a user, card product, card, webhook endpoint, and JIT gateway endpoint for you to use in your public or private sandbox environment. The sample code uses these resources to simulate several common transaction scenarios so that you can view their results and better understand how each component works during a JIT Funding transaction. The sample code uses Simulations 2.0 to simulate several common transaction scenarios such as authorization and clearing, PIN debit transactions, and various error-handling scenarios, including:- Basic authorization and clearing
- Authorization and clearing with multiple clearings for a single authorization
- Authorization and clearing with clearing amount greater than authorization amount
- Authorization, followed by advice and clearing
- Initial authorization, followed by incremental authorization and clearing
- Clearing only (i.e., force post)
- Basic PIN debit scenario
- Various error-handling scenarios