dk-test-py2-0.0.9
توضیحات
A small example package
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dk-test-py2-0.0.9 |
| نام | dk-test-py2 |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Example Author |
| ایمیل نویسنده | author@example.com |
| آدرس صفحه اصلی | https://github.com/Dip1059/python-test-pkg |
| آدرس اینترنتی | https://pypi.org/project/dk-test-py2/ |
| مجوز | - |
``` python
import collpay
collpay_obj = collpay.Collpay("0810545410c0dd7822cdd7c7caa336b2", collpay.ENV_SANDBOX, collpay.V1)
response = collpay_obj.get_exchange_rate("USD", "BTC")
print(response)
response = collpay_obj.create_transaction({
'payment_currency': 'BTC',
'order_currency': 'USD',
'order_amount': '10',
'payer_name': 'Xxx',
'payer_email': 'xxx@gmail.com',
'payer_phone': 'xxxxxxxx',
'payer_address': 'Bangladesh 1216',
'ipn_url': 'https://webhook.site/3b3ed4bf-8adb-4aec-b360-1d0c1c394766',
'ipn_secret': 'Cf9mx4nAvRuy5vwBY2FCtaKr', #Any random secret string of your's, It can be empty.
'success_url': 'https://www.success.io/success.html',
'cancel_url': 'https://www.failure.io/cancel.html',
'cart': '{"item_name":"t-shirt","item_number":"23","invoice":"SDF-453672-PMT"}', #Send any data format like json
'webhook_data': '{"order_id":"ABC12345-12"}' #Send any data format like json
})
print(response)
response = collpay_obj.get_transaction("xxxxxxxxxxx")
print(response)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.22.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl dk-test-py2-0.0.9:
pip install dk-test-py2-0.0.9.whl
نصب پکیج tar.gz dk-test-py2-0.0.9:
pip install dk-test-py2-0.0.9.tar.gz