결제
암호화폐 결제 — 110개 이상 코인을 지원하는 호스팅 결제창과 API 화이트 라벨 — 결제 흐름 전체를 내 브랜드로 자금 처리 — 자동 전환, 출금, 통제 기능 대량 지급 — API 또는 파일로 암호화폐 대량 지급 플랫폼 — 마켓플레이스 결제와 수수료
스왑 플러그인 제휴 프로그램 요금 블로그 문서 문의하기
언어
로그인
Node.js SDK crypto payment plugin logo
Developers

Accept crypto payments with the Node.js SDK

The official CryptoPayr Node.js SDK is a promise-based, zero-dependency client with bundled TypeScript types. Accept Bitcoin, Ethereum, USDT and 110+ coins from Express, NestJS, Next.js API routes or any Node backend.

Download the Node.js SDK Create free account

How to accept crypto payments with the Node.js SDK

Follow these steps to start taking Bitcoin, Ethereum, USDT and 110+ other coins.

  1. Install the SDK

    Run npm install cryptopayr. TypeScript definitions are bundled — no @types package needed.

  2. Initialise the client

    Import and construct with your secret key from Dashboard → Developers: const cp = new CryptoPayr({ apiKey: "sk_live_…" });

  3. Create a payment

    Use await cp.payments.create({ amount, currency: "USD", metadata: orderId }) and read checkout_url from the response.

  4. Redirect to the hosted checkout

    Send the customer to the checkout_url to choose a coin and pay. Addresses, fees and confirmations are handled for you.

  5. Verify the webhook

    In your webhook handler, call CryptoPayr.Webhook.verify(rawBody, signature, apiKey) and complete the order when status === "COMPLETED".

Need the full reference? See the API & webhook documentation, or read about the crypto payment gateway.

Requirements & compatibility

Frequently asked questions

Does it include TypeScript types?

Yes — type definitions ship inside the package, so you get autocomplete and type-checking out of the box.

Is the API promise-based?

Every method returns a promise, so you can use async/await throughout.

How do I read the raw body for webhook verification?

Capture the raw request body (e.g. express.raw()) before JSON parsing, since the signature is computed over the exact bytes CryptoPayr sent.

Where are the full examples?

The API documentation covers payments, payouts, refunds, balances and live rates with Node samples.

More crypto payment plugins

Start accepting crypto with the Node.js SDK

Create a free CryptoPayr account, grab your API key, and connect the Node.js SDK in minutes.

Create free account