How to access the Indian Payment Channel API? A Developer's Guide
# India Payment Channel API Access Guide
As an expert in Indian payment platforms, I will give you a detailed overview of how to access the APIs of the leading payment channels in India.
Major Indian payment gateways
1. Razorpay
2. PayU India
3. CCAvenue
4. Instamojo
5. Paytm Payment Gateway
Common Access Process
1. Register for a merchant account
- Visit the official website of your chosen payment gateway to register for a merchant account
- Submission of KYC documents (usually includes PAN card, GSTIN, bank account proof, etc.)
- Waiting for approval (usually takes 1-3 working days)
2. API key acquisition
- Generate or view API key pairs in Dashboard.
- Key ID/Public Key
- Key Secret/Private Key
3. API integration options
Most Indian payment gateways support.
“`
a) Checkout page integration (simplest)
b) Webhooks real-time notification processing
c) SDK Integration (Node.js, PHP, Python, etc.)
d) Raw API calls (RESTful interface)
“`
Razorpay sample code (Node.js)
"`javascript
const Razorpay = require('razorpay');
const instance = new Razorpay({
key_id: 'YOUR_KEY_ID',
key_secret: 'YOUR_KEY_SECRET'
});
//Creating an order
const options = {
amount: req.body.price *100, //amount in paisa (100 paisa = 1 rupee)
currency: "INR",
receipt: "order_rcptid_11"
};
instance.orders.create(options).then((order)=>{
res.json(order);
}).catch((err)=>{
res.status(500).send(err);
});
“`
PayU India Sample (PHP)
"`php