Process Order
curl --request POST \
--url https://api.paytring.com/api/v1/order/process \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"method": "upi",
"code": "collect",
"hash": "<string>",
"order_id": "<string>",
"vpa": "example@upi",
"device": "android"
}
'import requests
url = "https://api.paytring.com/api/v1/order/process"
payload = {
"key": "<string>",
"method": "upi",
"code": "collect",
"hash": "<string>",
"order_id": "<string>",
"vpa": "example@upi",
"device": "android"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
key: '<string>',
method: 'upi',
code: 'collect',
hash: '<string>',
order_id: '<string>',
vpa: 'example@upi',
device: 'android'
})
};
fetch('https://api.paytring.com/api/v1/order/process', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.paytring.com/api/v1/order/process",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => '<string>',
'method' => 'upi',
'code' => 'collect',
'hash' => '<string>',
'order_id' => '<string>',
'vpa' => 'example@upi',
'device' => 'android'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.paytring.com/api/v1/order/process"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"method\": \"upi\",\n \"code\": \"collect\",\n \"hash\": \"<string>\",\n \"order_id\": \"<string>\",\n \"vpa\": \"example@upi\",\n \"device\": \"android\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.paytring.com/api/v1/order/process")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"method\": \"upi\",\n \"code\": \"collect\",\n \"hash\": \"<string>\",\n \"order_id\": \"<string>\",\n \"vpa\": \"example@upi\",\n \"device\": \"android\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paytring.com/api/v1/order/process")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"<string>\",\n \"method\": \"upi\",\n \"code\": \"collect\",\n \"hash\": \"<string>\",\n \"order_id\": \"<string>\",\n \"vpa\": \"example@upi\",\n \"device\": \"android\"\n}"
response = http.request(request)
puts response.read_body"{\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}"Merchant Hosted Checkout Payment
Process Order
This api can be used to process transaction without opening paytring checkout , also known as seamless api or custom checkout api
POST
/
api
/
v1
/
order
/
process
Process Order
curl --request POST \
--url https://api.paytring.com/api/v1/order/process \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"method": "upi",
"code": "collect",
"hash": "<string>",
"order_id": "<string>",
"vpa": "example@upi",
"device": "android"
}
'import requests
url = "https://api.paytring.com/api/v1/order/process"
payload = {
"key": "<string>",
"method": "upi",
"code": "collect",
"hash": "<string>",
"order_id": "<string>",
"vpa": "example@upi",
"device": "android"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
key: '<string>',
method: 'upi',
code: 'collect',
hash: '<string>',
order_id: '<string>',
vpa: 'example@upi',
device: 'android'
})
};
fetch('https://api.paytring.com/api/v1/order/process', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.paytring.com/api/v1/order/process",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => '<string>',
'method' => 'upi',
'code' => 'collect',
'hash' => '<string>',
'order_id' => '<string>',
'vpa' => 'example@upi',
'device' => 'android'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.paytring.com/api/v1/order/process"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"method\": \"upi\",\n \"code\": \"collect\",\n \"hash\": \"<string>\",\n \"order_id\": \"<string>\",\n \"vpa\": \"example@upi\",\n \"device\": \"android\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.paytring.com/api/v1/order/process")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"method\": \"upi\",\n \"code\": \"collect\",\n \"hash\": \"<string>\",\n \"order_id\": \"<string>\",\n \"vpa\": \"example@upi\",\n \"device\": \"android\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paytring.com/api/v1/order/process")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"<string>\",\n \"method\": \"upi\",\n \"code\": \"collect\",\n \"hash\": \"<string>\",\n \"order_id\": \"<string>\",\n \"vpa\": \"example@upi\",\n \"device\": \"android\"\n}"
response = http.request(request)
puts response.read_body"{\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

