Razorpay Node SDK
Create payment links for Everlane orders
Shopper abandons, split payments, and gift links: payment links let Everlane accept payments quickly over email, SMS, and UPI. This prototype simulates creating a payment link (including partial payments, reminders, and a short URL) using Razorpay's API pattern.
R
Razorpay Node SDK
Payments · Payment Links · Subscriptions
Pre-built methods mirror the API: instance.paymentLink.create(payload). Keys & secrets stay on your backend — this demo simulates a response you would get from the SDK.
Create Payment Link
Simulate Razorpay.paymentLink.create for an Everlane order
Simulated • No keys needed
Integration snippet
Server-side Node example; keep keys secret.
const Razorpay = require('razorpay');
const instance = new Razorpay({
key_id: 'YOUR_KEY_ID',
key_secret: 'YOUR_KEY_SECRET'
});
const payload = {
amount: 12900,
currency: 'USD',
accept_partial: true,
first_min_partial_amount: 5000,
reference_id: 'EV-ORD-10021',
description: 'Everlane - The Loose Cardigan (size M)',
customer: { name: 'Jamie Rivera', email: 'jamie.rivera@example.com', contact: '+14155551234' },
notify: { sms: true, email: true },
reminder_enable: true,
notes: { store: 'San Francisco HQ', source: 'cart-abandon' }
};
instance.paymentLink.create(payload)
.then(link => console.log('created', link))
.catch(err => console.error(err));
Where this fits in Everlane's stack
Keep payment credentials on your backend. Use the SDK to create links for email campaigns, transactional receipts, or customer support flows. The short_url can be embedded in transactional emails or pushed to SMS via your provider.
Shopify / Custom cart
Razorpay
GCP / AWS
Example flow
- Add to cart → checkout starts
- Cart abandoned after shipping selection
- Support / Automation creates a payment link via SDK
- Customer receives short URL (email/SMS) and completes payment
Ship Razorpay payment links with Everlane
Fast payment capture without exposing API keys on the client. Use server-side SDK calls for receipts, refunds, and transfers.