{
"key": "de598e94-c0ae-4330-be80-195c84695dee",
"client_txn_id": "1234567890",
"amount": "1",
"p_info": "Product Name",
"customer_name": "Jon Doe",
"customer_email": "[email protected]",
"customer_mobile": "9876543210",
"redirect_url": "http://google.com",
"udf1": "user defined field 1 (max 25 char)",
"udf2": "user defined field 2 (max 25 char)",
"udf3": "user defined field 3 (max 25 char)"
}
How to post json data and get result data
your link is only accessible for registered users…
you might want to provide the API documentation for the create order method
Taifun
This post was flagged by the community and is temporarily hidden.
https://merchant.upigateway.com/api/create_order
This is the link
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"key": "de598e94-c0ae-4330-be80-195c84695dee",
"client_txn_id": "0123456789",
"amount": "100",
"p_info": "Product Name",
"customer_name": "Jon Doe",
"customer_email": "[email protected]",
"customer_mobile": "9876543210",
"redirect_url": "http://google.com",
"udf1": "user defined field 1",
"udf2": "user defined field 2",
"udf3": "user defined field 3"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://merchant.upigateway.com/api/create_order", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
This was javascript code
{
"status": true,
"msg": "Order Created",
"data": {
"order_id": 12345678,
"payment_url": "https://merchant.upigateway.com/gateway/pay/1234d59177fb9e775bf7asdfqwerxcvb",
"upi_intent": {
"bhim_link": "upi://pay?pa=... (available only in enterprise plan)",
"phonepe_link": "phonepe://pay?pa=... (available only in enterprise plan)",
"paytm_link": "paytmmp://pay?pa=... (available only in enterprise plan)",
"gpay_link": "tez://upi/pay?pa=... (available only in enterprise plan)"
}
}
}
Then I want this reply
remove the Get method
Taifun
May be this one may help you
You cannot run the above url to create order and it will new api key to proceed further
Read or share us the documentation page of the UPI gateway
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.