Razorpay Integration with Oracle APEX
List all Razorpay Orders
2) Get Razorpay Fetch Orders API End Point
3) Invoke Razorpay Fetch Orders API with Postman
5) List all Razorpay Orders in the form of Report using APEX_WEB_SERVICE API
I) Get Razorpay API Keys
API key is a combination of the key_id and key_secret and is required to make any API request to Razorpay. You also have to implement the API key in your code as part of your integration process.
Step 2: Select the mode (Test or Live) which you want to generate the API Key.
Step 3: Navigate to Settings --> API Keys --> Generate Key to generate key for the selected mode.
The key_id and key_secret appear on a pop-up page.
II) Get Razorpay Fetch Orders API End Point
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\
-X GET https://api.razorpay.com/v1/orders
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\
-X GET https://api.razorpay.com/v1/orders
III) Invoke Razorpay Fetch Orders API with Postman
Step 1: Setup Authorization (Basic Authentication) and click "Send" button to call the API.
Username: API Key Id Password: API Key Secrete
IV) Create a Sample Application
V) List all Razorpay Orders in the form of Report using APEX_WEB_SERVICE API
Step 2: Create a new region on the page (Position: Content Body). In the Property Editor, apply the following changes:
SQL Query:
API Success Response:
{
"entity":"collection",
"count":2,
"items":[
{
"id":"order_EKzX2WiEWbMxmx",
"entity":"order",
"amount":1234,
"amount_paid":0,
"amount_due":1234,
"currency":"INR",
"receipt":"Receipt No. 1",
"offer_id":null,
"status":"created",
"attempts":0,
"notes":[
],
"created_at":1582637108
},
{
"id":"order_EAI5nRfThga2TU",
"entity":"order",
"amount":100,
"amount_paid":0,
"amount_due":100,
"currency":"INR",
"receipt":"Receipt No. 1",
"offer_id":null,
"status":"created",
"attempts":0,
"notes":[
],
"created_at":1580300731
}
]
}
{
"entity":"collection",
"count":2,
"items":[
{
"id":"order_EKzX2WiEWbMxmx",
"entity":"order",
"amount":1234,
"amount_paid":0,
"amount_due":1234,
"currency":"INR",
"receipt":"Receipt No. 1",
"offer_id":null,
"status":"created",
"attempts":0,
"notes":[
],
"created_at":1582637108
},
{
"id":"order_EAI5nRfThga2TU",
"entity":"order",
"amount":100,
"amount_paid":0,
"amount_due":100,
"currency":"INR",
"receipt":"Receipt No. 1",
"offer_id":null,
"status":"created",
"attempts":0,
"notes":[
],
"created_at":1580300731
}
]
}
Comments
Post a Comment