# ksher_sdk_python
Ksher python Library at http://api.ksher.net
## How to install
```console
pip3 install ksher
```
```
from ksher.ksher_pay_sdk import KsherPay
appid=mch35005
privatekey=/Users/yourpath/repo/ksher_sdk_python/mch_privkey.pem
pubkey=/Users/yourpath/repo/ksher_sdk_python/ksher_pubkey.pem
payment_handle = KsherPay(appid, privatekey, pubkey)
data = {
"total_fee": "100",
"fee_type": "THB",
"mch_code": "",
"refer_url": "http://www.baidu.com",
"mch_redirect_url":"http://www.baidu.com/api/gateway_pay/success",
"mch_redirect_url_fail":"http://www.baidu.com/api/gateway_pay/fail",
"mch_notify_url":"http://www.baidu.com/api/gateway_pay/notify_url/",
"product_name":"",
"channel_list":"promptpay,linepay,airpay,truemoney,atome,card,ktc_instal,kbank_instal,kcc_instal,kfc_instal,scb_easy,bbl_deeplink,baybank_deeplink,kplus,alipay,wechat,card,ktc_instal,kbank_instal,kcc_instal,kfc_instal"
}
data['mch_order_no'] = generate_order_id()
resp = payment_handle.gateway_pay(data)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ksher-solutions/ksher_sdk_python",
"name": "ksher",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Ksher,ksher,ksher-payment,ksher-payment-api,ksherpay",
"author": "Ksher",
"author_email": "support@ksher.com",
"download_url": "https://files.pythonhosted.org/packages/bb/9b/769781e948dae0d92170679e9202e83926a717baabc8f829a9ed850993ff/ksher-0.1.tar.gz",
"platform": null,
"description": "# ksher_sdk_python\nKsher python Library at http://api.ksher.net\n\n## How to install\n\n```console\npip3 install ksher\n```\n\n```\nfrom ksher.ksher_pay_sdk import KsherPay\n\nappid=mch35005\nprivatekey=/Users/yourpath/repo/ksher_sdk_python/mch_privkey.pem\npubkey=/Users/yourpath/repo/ksher_sdk_python/ksher_pubkey.pem\n\npayment_handle = KsherPay(appid, privatekey, pubkey)\ndata = {\n \"total_fee\": \"100\",\n \"fee_type\": \"THB\",\n \"mch_code\": \"\",\n \"refer_url\": \"http://www.baidu.com\",\n \"mch_redirect_url\":\"http://www.baidu.com/api/gateway_pay/success\",\n \"mch_redirect_url_fail\":\"http://www.baidu.com/api/gateway_pay/fail\",\n \"mch_notify_url\":\"http://www.baidu.com/api/gateway_pay/notify_url/\",\n \"product_name\":\"\",\n \"channel_list\":\"promptpay,linepay,airpay,truemoney,atome,card,ktc_instal,kbank_instal,kcc_instal,kfc_instal,scb_easy,bbl_deeplink,baybank_deeplink,kplus,alipay,wechat,card,ktc_instal,kbank_instal,kcc_instal,kfc_instal\"\n}\ndata['mch_order_no'] = generate_order_id()\nresp = payment_handle.gateway_pay(data)\n\n\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "python implementation for Khser Payment API.",
"version": "0.1",
"split_keywords": [
"ksher",
"ksher",
"ksher-payment",
"ksher-payment-api",
"ksherpay"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "303766b52489b4fb5f8a6afec678f21e637c4634c98651dd82bea4313c9be400",
"md5": "c481541e62ea0ba486a491c0cf358510",
"sha256": "301d22fec63a47cd31e176387377cdc7f42e32ae00efd6da457b7833d278d56a"
},
"downloads": -1,
"filename": "ksher-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c481541e62ea0ba486a491c0cf358510",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 2616,
"upload_time": "2023-03-30T07:14:00",
"upload_time_iso_8601": "2023-03-30T07:14:00.008455Z",
"url": "https://files.pythonhosted.org/packages/30/37/66b52489b4fb5f8a6afec678f21e637c4634c98651dd82bea4313c9be400/ksher-0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bb9b769781e948dae0d92170679e9202e83926a717baabc8f829a9ed850993ff",
"md5": "5cbbb7e3a005ff5908a57deaf08f79e4",
"sha256": "5da911f5f9c4e7d62fc1d72175c42f54ad4ea168e6a7506b156851e1aaa7f04b"
},
"downloads": -1,
"filename": "ksher-0.1.tar.gz",
"has_sig": false,
"md5_digest": "5cbbb7e3a005ff5908a57deaf08f79e4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2680,
"upload_time": "2023-03-30T07:14:01",
"upload_time_iso_8601": "2023-03-30T07:14:01.255798Z",
"url": "https://files.pythonhosted.org/packages/bb/9b/769781e948dae0d92170679e9202e83926a717baabc8f829a9ed850993ff/ksher-0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-30 07:14:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "ksher-solutions",
"github_project": "ksher_sdk_python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ksher"
}