from paytring import Order
Create instance of class Order
order = Order()
Input Parameter
- Receipt ID(string)
- Amount(string)
- Callback Url(string)
- Customer Info ( Dictionary )
Function
customer_info = {
"cname": "test",
"email": "abc@gmail.com",
"phone": "phone"
}
order.Create(
receipt_id,
amount,
callback_url
customer_info
)
{
"status": true,
"url": "www.makepayment.com",
"order_id": "365769619161481216"
}
Input Parameter
- Order ID(string)
Function
order.Fetch(
order_id
)
{
"status": true,
"order": {
"order_id": "365760761810649088",
"receipt_id": "bg6mxmsb",
"amount": 100,
"customer": {
"name": "John Doe",
"email": "test@test.com",
"phone": "9999999999"
},
"order_status": "success",
"unmapped_status": "captured",
"bank": {
"code": "UPI",
"mode": "UPI",
"ref_num": "213384143547"
}}}