Developer kits

Accept skins payments with the PHP SDK

A small, dependency-free PHP library for SkinsGateway. Create a payment, send the customer to the checkout and confirm the order from a signed notice.

skinsgateway-php-sdk.zip · 41 KB · Gratis

  • PHP 8.0+
  • ext-curl and ext-json
  • Composer optional

Cómo funciona un pago

  1. Pegan su enlace de intercambio de Steam y eligen objetos de CS2, Dota 2 o Rust por el valor del total.

  2. Una oferta de intercambio de Steam, confirmada en su app de Steam. Sin crear cuenta.

  3. PHP SDK recibe el aviso y marca el pedido como pagado. Tú recibes USD en tu saldo.

El cliente ha elegido dos skins en el checkout. El checkout pide al cliente que acepte el intercambio en Steam. El checkout confirma que el pago se ha completado.

Most game sites, panels and custom shops run on PHP. The SkinsGateway PHP SDK lets them take skins without writing an API client: one class for payments, purchases, your balance and the webhook check.

Your server creates a payment for an order and gets back a checkout link. The customer picks CS2, Dota 2 or Rust items and accepts one Steam trade. SkinsGateway then sends a signed notice to your site, the SDK checks the signature, and you read the payment once more before you fulfil the order.

It works with Composer or as a single file you require, in Laravel, Symfony, WordPress or plain PHP. Test mode works with the same code: just use your test secret.

Funciones

Lo que obtienes con PHP SDK

Composer or one file

Install with Composer, or copy the single bundled file into any project.

Payments in a few lines

Create a payment for an order and send the customer to the returned checkout link.

Signature check built in

Verify every notice before you trust it, with a helper that also rejects old or replayed notices.

Market and balance

Read your balance and buy skins from the market to send to customers.

Clear errors

Typed exceptions for invalid requests, authentication, insufficient balance and network trouble.

Con qué pagan tus clientes

Objetos reales, con precio en vivo.

Objetos como estos son los que intercambian tus clientes. Cada uno se valora en cuanto carga su inventario.

En el mercado ahora mismo
  • AK-47 | Redline (Field-Tested) AK-47 | Redline Algo desgastado $21.16
  • AWP | Crakow! (Battle-Scarred) AWP | Crakow! Deplorable $13.39
  • Cuchillo ★ Karambit | Tiger Tooth (Factory New) Karambit | Tiger Tooth Recién fabricado $623.90
  • M4A1-S | Solitude (Factory New) M4A1-S | Solitude Recién fabricado $8.10
  • Guantes ★ Sport Gloves | Bronze Morph (Battle-Scarred) Sport Gloves | Bronze Morph Deplorable $53.61
  • Desert Eagle | Printstream (Battle-Scarred) Desert Eagle | Printstream Deplorable $25.27
  • Cuchillo ★ Butterfly Knife | Fade (Factory New) Butterfly Knife | Fade Recién fabricado $1,503.18
  • USP-S | Printstream (Battle-Scarred) USP-S | Printstream Deplorable $25.10
  • M4A4 | Desolate Space (Battle-Scarred) M4A4 | Desolate Space Deplorable $9.25
  • Glock-18 | AXIA (Field-Tested) Glock-18 | AXIA Algo desgastado $14.16
Instalar

Configurar PHP SDK

  1. Create a project

    In the SkinsGateway dashboard, add your site under Projects & API keys and keep the API secret and webhook signing secret on your server.

  2. Add the SDK

    Install it with Composer, or unzip skinsgateway-php-sdk.zip and require the single file skinsgateway.php.

  3. Create a payment

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

  4. Handle the webhook

    On your webhook endpoint, verify the notice with your webhook signing secret, read the payment again and fulfil the order once.

  5. Set the webhook URL

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

  6. Test, then go live

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

Preguntas frecuentes

PHP SDK y pagos con skins

What does the PHP SDK cost?

Nothing. The PHP 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.

Do I need Composer?

No. The download includes a single-file build you can require directly. Composer users get normal PSR-4 autoloading.

Where are the code examples?

In the developer docs: creating payments, embedding the checkout, verifying webhooks and buying skins, with full examples.

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 fulfil. 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.

Which frameworks does it support?

Any PHP 8.0+ code. It has no dependencies, so it fits Laravel, Symfony, WordPress plugins and plain scripts alike.

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. Your code stays the same; only the secret changes.

Integraciones relacionadas

Otras formas de aceptar skins

Sectores

Quién lo usa

PHP SDK, ahora acepta skins.

Abre una cuenta, añade tu web, instala. Sin revisión, sin comisiones.

Crear cuenta