Playmos
Gamehub
Make yourself at home.

Sign in to your Playmos account.

For developers
and publishers
Developers Your first payment
Documentation Your first payment

Make your first payment.

Install the SDK, make a test payment and inspect a real receipt. No wallet is needed for the public sandbox IAP path.

1. Install the SDK#

InstallTerminal
  1. npm install @playmos/sdk@0.3.20

Examples target SDK 0.3.20. For Node, use a runtime supported by the package’s engines; Node 22 is supported. The browser entry is @playmos/sdk. Webhook verification uses the server-only entry.

2. Create a payment#

Save the complete example as t0.mjs in your project. It saves a purchase key before calling pay(). The public sandbox key and settle: 'server' use the service’s Base Sepolia test signer.

Run the first paymentTerminal
  1. node t0.mjs

The runner keeps .playmos-demo-purchase.json. After a payment ID exists, running it again verifies that same ID. Keep this file for recovery; intentionally use a new purchase file only for a new purchase.

3. Inspect the receipt#

Check the payment ID, status, transaction hash and verification source. If verification remains pending or degraded, retry the read; do not create another purchase.

Run this example

4. Connect your backend#

Continue with payment verification and signed webhooks. Sandbox requests are bounded and rate limited. Real testnet IAP is capped at 1.00 test USDC per request; the playground defaults to 0.01.