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.
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.
Stop stitching together isolated payment endpoints. Start from one official SDK and reach the resources that power a complete commerce platform.
Promise-returning methods fit naturally into modern Node.js services, workers and serverless handlers.
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.
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);