Merchant Initiated Transactions (MIT)
Merchant Initiated Transactions
Merchant Initiated Transactions (MIT) allow merchants to initiate payments on behalf of customers. To do this, the merchant must first register a Payment Page or Self-hosted Page terminal. The customer completes the first payment through one of these terminals, after which the merchant can initiate subsequent payments using the MIT terminal.
This guide assumes your online store is set up. For details on setting up an online store, refer to our Onboarding guide.
Setup Payment Processing for MIT
There are two stages involved in MIT payments:
1. Initial Transaction by Customer
Regardless of the payment mode, every payment acceptance starts with the Create Order API.
Note
Please note that the following should be done with the terminal type registered as either PaymentPage or SelfHostedPage.
Create Order with Tokenization
Use the Create Order API with the enforceTokenization parameter set to true in the control fields.
Customer Completes Payment
- The customer enters their card details on the web-shop page
- Once the payment is completed, the card details are tokenized and saved against the order
- Make a Fetch Tokens from Orders API call to retrieve the
tokenIdand additional card information - This
tokenIdmust be securely stored against the customer and will be used for future transactions
2. Subsequent Merchant Initiated Payments
Note
Please note the following should be done with the terminal type registered as MerchantInitiated.
Initiate Payment Using CTOKEN
-
Create an order using Create Order API. It will return the
orderIdwhich you need to use in the payment initiation. -
Make a POST request to Initiate Payment API with payment method set to
CTOKENand provide thetokenIdstored against that customer:
Check Order Status
In each stage, to verify if the payment was successful, you can call the Fetch Order Status API. If the order status changes to PAYMENT_COMPLETED or PAYMENT_CANCELLED, you can see the transaction details.
MIT Payment Flow
Post Payments
The post payments process remains the same across all our online payment modes. You can refer to the post-payment functionalities to know more: