Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pay-tring/python-sdk
Paytring sdk for paytring
https://github.com/pay-tring/python-sdk
package paytring python python3 sdk
Last synced: 19 days ago
JSON representation
Paytring sdk for paytring
- Host: GitHub
- URL: https://github.com/pay-tring/python-sdk
- Owner: pay-tring
- Created: 2023-06-06T08:10:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-06T08:13:53.000Z (over 1 year ago)
- Last Synced: 2024-12-10T12:47:05.402Z (about 2 months ago)
- Topics: package, paytring, python, python3, sdk
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Paytring\Python
## Usage
```python
from paytring import Order```
### Create Order
```python
Create instance of class Order
order = Order()
```---
Input Parameter- Receipt ID(string)
- Amount(string)
- Callback Url(string)
- Customer Info ( Dictionary )Function
```python
customer_info = {
"cname": "test",
"email": "[email protected]",
"phone": "phone"
}order.Create(
receipt_id,
amount,
callback_url
customer_info
)
```#### Response
```
{
"status": true,
"url": "www.makepayment.com",
"order_id": "365769619161481216"
}
```### Fetch Order
---
Input Parameter- Order ID(string)
Function
```order.Fetch(
order_id
)
```### Response
```{
"status": true,
"order": {
"order_id": "365760761810649088",
"receipt_id": "bg6mxmsb",
"amount": 100,
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "9999999999"
},
"order_status": "success",
"unmapped_status": "captured",
"bank": {
"code": "UPI",
"mode": "UPI",
"ref_num": "213384143547"
}}}```