Introduction
Ksher API Gateway supports payment in multiple countries and multiple payment channels (different card schemes, wallets and offline channels). All countries and channels can be integrated using a unified API.
In the sale transaction process, the interaction between the merchant and the gateway is as follows:
- The merchant's website initiates a transaction through an API call, and the API request contains the following main information:
- Amount
- Successful transaction redirect url
- Transaction failed redirect url
- The API gateway returns a payment link to the merchant website, and the merchant website redirects the consumer's browser (or the webview built in the mobile APP) to this payment link.
- The consumer visits the payment link and completes the payment.
- After the payment is successful, the API gateway sends a Webhook to the merchant's website, and at the same time redirects the consumer's browser to access the "transaction successful redirect url" in the first step request
The above figure is a sequence diagram of the interaction among consumers, merchant websites, API gateways, and wallets in a payment scenario.