Shopify
The All-in-One Commerce Platform for Businesses
Razorpay Node SDK · Prototype
Contact integration team →
Be the nextAI all-star

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.

Why this helps Shopify
  • 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.
Prototype status
Simulation — interactive
Simulated SDK response
Click "Create order · generate payment link" to run the simulated Razorpay Node SDK flow. The prototype shows what a real server-side integration returns to Shopify's backend.

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.

Server-side (Shopify app)
Instantiates Razorpay Node SDK with API keys or OAuth token; creates orders; stores razorpay_order_id on Shopify order metadata.
Razorpay
Receives order create call, returns order id, payment link metadata, available payment methods (UPI, Virtual Account, Cards).
Webhook / Reconcile
Razorpay sends payment events to your app; verify signature using the SDK utilities and mark Shopify order as paid.

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));
Notes: for platform partners use oauthToken. Use webhooks & HMAC signature verification for reconciliation.

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.