Skip to main content

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:

  1. 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
  2. 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.
  3. The consumer visits the payment link and completes the payment.
  4. 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

gateway_flow

The above figure is a sequence diagram of the interaction among consumers, merchant websites, API gateways, and wallets in a payment scenario.