Developer kits

Accept skins payments with the Node.js SDK

A dependency-free Node.js library with TypeScript types. Create payments from your backend or Discord bot and verify every notice in one line.

skinsgateway-node-sdk.zip · 16 KB · Ücretsiz

  • Node.js 18+
  • TypeScript optional
  • No dependencies

Bir ödeme nasıl işler

  1. Steam takas bağlantılarını yapıştırır ve toplam değerde CS2, Dota 2 ya da Rust eşyaları seçerler.

  2. Steam uygulamalarında onaylanan tek bir Steam takas teklifi. Hesap açmaya gerek yok.

  3. Node.js SDK bilgilendirilir ve siparişi ödendi olarak işaretler. Bakiyene USD gelir.

Müşteri ödeme sayfasında iki skin seçti. Ödeme sayfası müşteriden takası Steam'de kabul etmesini istiyor. Ödeme sayfası ödemenin tamamlandığını onaylıyor.

A lot of gaming products are built on Node.js: Discord bots, game backends, Next.js stores and community dashboards. The SkinsGateway Node.js SDK gives them skins payments without an HTTP client to maintain.

Your backend creates a payment and sends the customer to the checkout link. The customer picks CS2, Dota 2 or Rust items and accepts one Steam trade. SkinsGateway sends a signed notice; the SDK verifies it against the raw request body, and you confirm the payment before you deliver.

It ships as ESM and CommonJS with bundled types, uses the built-in fetch of Node.js 18 and has no runtime dependencies. Test mode is a different secret, not different code.

Özellikler

Node.js SDK ile neler elde edersin

Zero dependencies

Uses what Node.js 18 already has. Nothing to audit but the SDK itself.

TypeScript types

Types for every request and response, so your editor knows the shape of a payment.

ESM and CommonJS

Import it or require it, whichever your project uses.

Webhook verification

Check the signature of every notice before you act on it.

Built for bots

Create a checkout link in a slash command and deliver the role when the payment is final.

Müşterilerin neyle öder

Gerçek eşyalar, canlı fiyatlar.

Müşterilerinin takas ettiği eşyalar bunlar gibi. Her biri envanterleri yüklendiği anda değerlenir.

Şu anda pazarda
  • AK-47 | Redline (Field-Tested) AK-47 | Redline Görevde Kullanılmış $21.16
  • AWP | Crakow! (Battle-Scarred) AWP | Crakow! Savaş Görmüş $13.39
  • Bıçak ★ Karambit | Tiger Tooth (Factory New) Karambit | Tiger Tooth Fabrikadan Yeni Çıkmış $623.90
  • M4A1-S | Solitude (Factory New) M4A1-S | Solitude Fabrikadan Yeni Çıkmış $8.10
  • Eldiven ★ Sport Gloves | Bronze Morph (Battle-Scarred) Sport Gloves | Bronze Morph Savaş Görmüş $53.61
  • Desert Eagle | Printstream (Battle-Scarred) Desert Eagle | Printstream Savaş Görmüş $25.27
  • Bıçak ★ Butterfly Knife | Fade (Factory New) Butterfly Knife | Fade Fabrikadan Yeni Çıkmış $1,503.18
  • USP-S | Printstream (Battle-Scarred) USP-S | Printstream Savaş Görmüş $25.10
  • M4A4 | Desolate Space (Battle-Scarred) M4A4 | Desolate Space Savaş Görmüş $9.25
  • Glock-18 | AXIA (Field-Tested) Glock-18 | AXIA Görevde Kullanılmış $14.16
Kur

Node.js SDK kurulumu

  1. Create a project

    In the SkinsGateway dashboard, add your app under Projects & API keys and store the secrets in environment variables.

  2. Add the SDK

    Unzip skinsgateway-node-sdk.zip into your project and import it.

  3. Create a payment

    Create the client with your Client ID and secret, create a payment and send the customer to its checkout link.

  4. Handle the webhook

    Read the raw request body, verify the notice with your webhook signing secret, read the payment again and deliver once.

  5. Set the webhook URL

    In the SkinsGateway dashboard open your project, Settings, and enter your endpoint as the Webhook URL.

  6. Test, then go live

    Run the flow with your test secret, then swap in the live one.

SSS

Node.js SDK ve skin ödemeleri

What does the Node.js SDK cost?

Nothing. The Node.js SDK is free to download and use. SkinsGateway charges 0% of each payment credited to your balance, and nothing else: no setup fee, no monthly fee, no minimum volume. Failed, expired and returned payments cost nothing.

Can I use it in a Discord bot?

Yes. Create the payment when a member runs a command, send them the checkout link, and grant the role or item when your webhook confirms the payment.

Does it run in the browser?

No. It needs your API secret, which must stay on your server. In the browser, use the pay button script to show the checkout.

What happens with Steam Trade Protection?

Steam can hold traded items for up to 7 days and return them to the customer in that window. A protected payment is not counted as paid yet: your webhook receives a protected status and you wait before you deliver. When the hold ends the payment completes on its own, or you can release it early in your SkinsGateway dashboard if you trust the customer.

Where are the code examples?

In the developer docs, with examples for payments, the checkout window, purchases and webhook checks.

Can I test before going live?

Yes. Turn on test mode and use your project's test secret. The checkout then shows real items with real prices but no item and no money moves, and buttons let you play every outcome: paid, protected, returned, declined. Same code, different secret.

İlgili entegrasyonlar

Skin kabul etmenin diğer yolları

Pay button

Any website · A server that creates payments

One script tag: the checkout in a window over your page.

Kurulum rehberi Tek bir script etiketi
Sektörler

Kimler kullanıyor

Node.js SDK, artık skin kabul ediyor.

Hesap aç, siteni ekle, kur. İnceleme yok, ücret yok.

Hesap oluştur