Accept UPI, Virtual Accounts & More — fast on Shopify
Try a simulated Razorpay integration embedded in a Shopify checkout flow: create an order, generate a payment link that supports UPI and virtual accounts, and verify signatures — all shown with real responses you'd get from the Razorpay Node SDK.
- Reduce time-to-market for India-facing merchants: accept UPI and virtual accounts out of the box.
- One SDK, many resources — orders, payments, refunds, subscriptions.
- Server-side Node integration maps directly into Shopify's backend apps and platform partners program.
How Razorpay Node SDK slots into Shopify
Server app (Shopify) —> Razorpay Node SDK —> Razorpay API. Use server-side calls for order creation, then return payment links or handle webhooks to reconcile payments in Shopify orders.
Integration snippet — server (Node)
This matches the Razorpay Node SDK usage patterns (orders.create, payments.fetch). Replace process.env.RZP_KEY with your keys or OAuth token from Razorpay.
// server/routes/razorpay.js
const Razorpay = require('razorpay');
const razorpay = new Razorpay({
key_id: process.env.RZP_KEY,
key_secret: process.env.RZP_SECRET
});
// create an order that supports UPI & Virtual Accounts
const payload = {
amount: 259900, // paise (INR)
currency: 'INR',
receipt: 'order_rcptid_11',
notes: { shopify_order_id: 100228 }
};
// server-side
razorpay.orders.create(payload)
.then(order => {
// store order.id on Shopify order metadata
// create a payment link or return order.id to client
console.log('order', order);
})
.catch(err => console.error(err));
Ready to pilot Razorpay payments on Shopify?
We simulated order creation, payment link generation and signature verification for a typical India merchant — helpful when onboarding merchants who need UPI & virtual account collection.