Quick Start
Let's discover How to make a payment transaction by API call in less than 5 minutes.
#
Getting StartedAssume you already have a Ksher Payment API gate account, please log in using your user name and password.
If you don't have a sandbox account yet, you can try below test sandbox.
https://sandboxdoc.vip.ksher.net/api-docs
#
Transaction by one single API callWe can use the built-in swagger try out feature to call the new order
API.
- A new order was generated by calling the POST API
- The API was successful, and a payment link was returned.
- The payment link was opened in browser, the payment was made via the browser.
- The status of the order is paid, it was verified by checking the gateway GUI.
The POST data for generating the order was as above. After the payment was made sucessful, the browser was redirected to http://www.google.com, according to the redirect_url
.
note
The payment link generated by the API is responsive, if you redirect the mobile to open that link, the UX will be mobile optimized.
#
What's nextThis is a simple demo on how to make payment by only one redirect API call. You can refund the payment either by callint the refund API, or via the GUI of API gateway portal.
To make a fully functional integration, you will also need to know: