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

Response

200
application/json

200

The response is of type object.