Make every payment flow feel native.

Square, meet your payment orchestration layer.

The official Razorpay Node.js SDK turns complex payment, subscription, payout and onboarding workflows into clean, promise-based API calls your Square engineering team can ship with confidence.

npm i razorpay Promise resolved
Payments Subscriptions OAuth
Built for Square’s Next API Surface

Accept payments

Create orders, fetch payments, capture funds and process refunds without hand-rolled REST wrappers.

💳

Recurring revenue

Manage plans, subscriptions, invoices and payment status from the same Node.js client.

Platform onboarding

Use OAuth access tokens for partner and account flows as Square expands its ecosystem.

🏦

Move money intelligently

Expose payouts, settlements, disputes, virtual accounts and Smart Collect through a consistent backend interface.

Square’s breadth deserves an integration layer that keeps pace. Razorpay packages the operational details behind a single, typed-feeling Node workflow your teams can reuse across products.

One Client. Every Resource.

Stop stitching together isolated payment endpoints. Start from one official SDK and reach the resources that power a complete commerce platform.

new Razorpay({ key_id, key_secret }) orders payments customers refunds subscriptions invoices settlements disputes accounts stakeholders webhooks UPI

Promise-returning methods fit naturally into modern Node.js services, workers and serverless handlers.

Live Order Builder

See the API call Square engineers would actually ship.

Create a Razorpay order from a realistic Square marketplace checkout: a $125.00 seller payout workflow represented in the API’s smallest currency unit.

$
USD cents — $125.00
The Integration Your Backend Team Knows

Small surface area. Serious payment infrastructure.

import Razorpay from "razorpay"; const razorpay = new Razorpay({ key_id: process.env.RAZORPAY_KEY_ID, key_secret: process.env.RAZORPAY_KEY_SECRET }); const order = await razorpay.orders.create({ amount: 12500, currency: "USD", receipt: "square-marketplace-1048" }); console.log(order.id);
For platform flows, swap secret-key authentication for oauthToken and keep the same resource-oriented mental model.
Trusted Patterns from Modern Commerce

The category already runs on composable payments.

Stripe
Adyen
Checkout.com
Shopify
Toast
Square operates at this same level of complexity: merchants, platforms, recurring revenue, disputes and money movement all meeting in one customer experience. Razorpay gives your Node.js teams a direct, maintainable path through the backend.
Comparable payment and commerce platforms

Give every Square engineer a shorter path from checkout to settlement.

Install the official Razorpay Node SDK, prototype one order flow, then extend the same client across subscriptions, refunds, onboarding, payouts and webhooks.
Read the API surface