NOWPayments Node.js SDK

Interactive marketing demo · simulated API responses

No API key needed · Screenshot-ready UI
Official SDK Experience

Accept crypto payments with a few Node.js calls.

A modern, Stripe-like dashboard that demonstrates the core SDK flow: estimate price, create hosted checkout, create direct payment, and track payment status.

const NowPaymentsApi = require('@nowpaymentsio/nowpayments-api-js') const api = new NowPaymentsApi({ apiKey: process.env.NOWPAYMENTS_API_KEY }) await api.getEstimatePrice({ amount: 100, currency_from: 'usd', currency_to: 'btc' }) await api.createPayment({ price_amount: 100, price_currency: 'usd', pay_currency: 'btc' })

Get Estimate

Preview fiat-to-crypto conversion before checkout.
getEstimatePrice()
Simulated response~320 ms
100 USD ≈ 0.00096 BTC

Create Checkout

Generate hosted payment page URL for customers.
createInvoice()
Hosted invoice
Click “Create checkout” to generate a realistic invoice_url.

Direct Payment

Build a custom payment screen with address and QR.
createPayment()
Payment detailswaiting
Click “Create direct payment” to generate address, amount and QR.

Payment Status

Simulate lifecycle updates from waiting to finished.
getPaymentStatus()
Lifecyclewaiting
Copied