Skip to content

Code Examples

Ready-to-use code examples for integrating with the Pixlpay API in your preferred language.

Available Languages

LanguageDescription
Node.jsJavaScript/TypeScript with fetch or axios
PHPNative PHP with cURL
PythonPython with requests library
GoGo with net/http

Quick Start

All examples follow the same pattern:

  1. Initialize a client with your store subdomain and API token
  2. Make API calls using the client's methods
  3. Handle responses and errors appropriately

Getting Your API Token

  1. Log in to your Pixlpay dashboard
  2. Go to Settings > API Tokens
  3. Click Create Token
  4. Select the required scopes
  5. Copy the token (it's only shown once!)

Common Operations

Each language example includes code for:

  • Products: List, create, update, delete
  • Orders: List, retrieve, update status
  • Customers: List, retrieve, search
  • Subscriptions: List, cancel
  • Webhooks: Signature verification

Webhook Verification

All examples include secure webhook signature verification. See Webhook Verification for detailed explanation of the security model.

Next Steps

Built for game developers, by game developers.