Python
Python Github SDK This is python sdk for intergrating your python application with Ksher Payment Gateway. Please refers to our official api document here
#
RequirementPython 3.7
- other python3 version should also work, but python package version might cause some conflice and minor change might need to be done.
Ksher Payment API Account
- Requesting sandbox account please contact solutions@ksher.com
API_URL
- Along with a sandbox accout, you will be receiving a API_URL in this format: s[UNIQUE_NAME].vip.ksher.net
API_TOKEN
- Log in into API_URL using given sandbox account and get the token. see How to get API Token
The Payment SDK for accessing *.vip.ksher.net
#
How to Installyou can git clone this repository and install this package
#
step1: clone this repository#
step2: cd into cloned source code and pip install all the requriements and the package itself#
How to Useyou need to first init the payment object and that you can use it to;
- Create New Order
- Query Order Status
- Refund the Order
#
Init Payment Object#
Create New Ordermerchant_order_id need to be unique or else the request will end with error
#
Query order status#
RefundRefund_id need to be unique or else the request will end with error