Immediate Payment Flow
Immediate Payment Flow
This flow allows merchants to capture the full payment amount with a single API call. This flow completes the payment approval, starts the customer's payment plan, and settles the full order value with the merchant - all as a combined action.
- Merchant calls the Get Configuration endpoint to retrieve Wizit order limits and allow merchant to set the minimum and maximum for wizit from merchant side. This should be within wizit Limit. Merchant can also enable automatic capture. So that the immediate capture will be done if items are available in stock.
- Merchant stores these minimum and maximum order values server-side.
- At the checkout, Merchant uses the stored Wizit minimum and maximum order values to determine if Wizit should be presented as an available payment method.
- Merchant calls the Create Checkout endpoint to retrieve Wizit order token and the wizit redirect URL.
- Merchant uses this redirect URL to redirect the Customer through the Wizit screen flow.
- Upon completing the Wizit screen flow and the customer will be returned to the Merchant website.
- If the customer is redirected to the confirm URL, merchant has to initiate a transaction status call to know the transaction and payment status.
- If the transaction status api return transaction status as “APPROVE” and payment status as “AUTH_APPROVED” the merchant calls the Capture Full Payment endpoint to capture the payment.
- If the transaction status return transaction status as “DECLINED” or payment status as “AUTH_DECLINED” the Merchant presents an appropriate decline message to the Customer at the checkout.
- If the customer cancels the Wizit payment flow, the customer will be redirected to cancel URL and merchant can cancel the order.
Read more about Immediate Payment Flow API reference.
Updated over 1 year ago