Experience ZenoPay Payment Gateway Integration
Latest flagship smartphone with amazing features
Powerful laptop for professionals and creators
Premium noise-cancelling wireless headphones
This is how merchants can integrate ZenoPay into their websites:
<script src="https://your-zenopay-domain.com/js/checkout.js"></script>
// On your server
const order = await fetch('https://api.zenopay.com/api/orders', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'zpk_live_your_api_key'
},
body: JSON.stringify({
amount: 50000, // Amount in paise (₹500)
currency: 'INR',
receipt: 'order_rcptid_11'
})
});
const options = {
key: 'zpk_live_your_api_key',
amount: order.amount,
currency: 'INR',
name: 'Your Business Name',
description: 'Product Description',
order_id: order.id,
handler: function (response) {
// Payment success
console.log(response.razorpay_payment_id);
console.log(response.razorpay_order_id);
console.log(response.razorpay_signature);
},
prefill: {
name: 'Customer Name',
email: 'customer@example.com',
contact: '9876543210'
},
theme: {
color: '#3399cc'
}
};
const zenopay = new ZenoPay({ key: options.key });
zenopay.createPayment(options).open();
// Verify signature on your server
const verified = await fetch('https://api.zenopay.com/api/payments/verify', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'zpk_live_your_api_key'
},
body: JSON.stringify({
razorpay_order_id: response.razorpay_order_id,
razorpay_payment_id: response.razorpay_payment_id,
razorpay_signature: response.razorpay_signature
})
});