Skip to main content

Payment gateway

Payment gateway integration with Zoksh gives you maximum control on your payments. This needs some code integration which is straight forward.

Overview

The diagram below provides the overview of entire payment process.

There are three actors namely:

  1. Your customer, who is here to make the payment.
  2. Your application which includes E-commerce Store and Backend Server. E-commerce store is a customer facing frontend application. While Backend Server serves it.
  3. Zoksh Payment Systems which includes API Server and Payment UI. API Server is the interface to interact with your payment requests and provide responses. Payment UI is iframe based UI which will be loaded in your E-commerce store. User will interact with Payment UI to complete the payment.

Payment flow diagram

Let's discuss each step in the flow diagram.

  1. Customer Clicks Buy Button for product on E-commerce Store.
  2. E-commerce Store frontend app sends Order Creation Request to its Backend Server.
  3. Backend Server sends Create Order request to Zoksh API Server.
  4. Zoksh API Server responds with Generated Order Id which uniquely identifies the order in the payment flow.
  5. Backend Server responds to E-commerce Store frontend app with Zoksh Payment UI url based on Generated Order Id.
  6. E-commerce Store frontend app loads Zoksh Payment UI url to make payment.
  7. Customer selects tokens and makes the payment via Zoksh Payment UI.
  8. Zoksh API Server waits for payment confirmation. Whenever payment is confirmed, it triggers a Webhook Call for Payment Confirmation on Backend Server.
  9. Backend Server sends order confirmation notification to E-commerce Store, which in turn updates the Customer.

Payment gateway integration

Payment gateway integration is simple.

  1. Get the account keys from your merchant account.
  2. Understand how to sign the requests. Validate it with test data.
  3. Start making requests to our payment servers.