POST
/
api
/
v1
/
order
/
process
curl --request POST \
  --url https://api.paytring.com/api/v1/order/process \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "order_id": "<string>",
  "method": "upi",
  "code": "collect",
  "vpa": "example@upi",
  "card": {
    "number": "<string>",
    "cvv": "<string>",
    "expiry_month": "<string>",
    "expiry_year": "<string>",
    "holder_name": "<string>"
  },
  "hash": "<string>",
  "device": "android"
}'
"{\n    \"status\": true,\n    \"payment_id\": \"667589021207104214\",\n    \"data\": {\n        \"type\": \"intent\",\n        \"token\": \"66c837ca1d1a3\",\n        \"url\": \"dXBpOi8vcGF5P3BhPWV4YW1wbGVAbnBjaSZwbj1UZXN0JnRyPUUyNDA2MDQ3NVhVNjRUJm1jPTgyMjAmYW09MS4wMCZjdT1JTlImdG49UGF5Jm1hbT0xLjAwJnJlZlVybD1odHRwczovL3BheS5lYXNlYnV6ei5pbg==\",\n        \"param\": []\n    },\n    \"request_id\": \"66c837c9baf4c\"\n}"

This API is used to process an order for payment after it has been created.

Request Body

{
  "key": "string", // Merchant API key
  "order_id": "string", // Order ID
  "hash": "string" // Calculated hash for request validation
}

Responses

200 OK

{
  "status": true,
  "message": "Order processed successfully",
  "transaction_id": "string"
}

400 Bad Request

{
  "status": false,
  "error": {
    "message": "Invalid request",
    "code": 400
  }
}

Body

application/json
key
string
required

merchant api key, provided by paytring.

method
string
default:upi
required

eg. upi, nb, card, wallet, emi

code
string
default:collect
required

this parameter's value changes depending on what method it is, in case of upi you have three options collect, qr, intent .In case of nb bank code will be passed as value, incase of wallet , wallet app code will be passed. in case of card value will be card

hash
string
required

to be calculated for this request

order_id
string

order id received in response from paytring in create order api

vpa
string
default:example@upi

only required if method is upi and code is collect

card
object

only required if method is card

device
string
default:android

mandatory if method is upi and code is intent, eg. android, ios

Response

200
application/json
200
status
boolean
default:true
Example:

true

payment_id
string
Example:

"667589021207104214"

data
object
request_id
string
Example:

"66c837c9baf4c"