Developer Settings
The Developers page provides tools for integrating Waffo Pancake with your applications.API Keys
Overview
API keys authenticate server-to-server requests to the Waffo Pancake API.Test Keys
- Created for
testenvironment - Use for development
- No real charges
- Separate from production data
Live Keys
- Created for
prodenvironment - Use for production
- Process real payments
- Keep private key secure
Key Types
| Key Type | Use Case | Description |
|---|---|---|
| API Key | Server-side only | Signed requests for full API access |
API Key Authentication
API Key authentication is handled automatically by the SDK. Install
@waffo/pancake-ts, provide your Merchant ID and private key, and the SDK will handle request signing automatically.Creating API Keys
Generate Key Pair
Click “Generate” to create a key pair.
- Public key is sent to the server
- Private key stays with you
Managing Keys
| Action | Description |
|---|---|
| View | See key nickname, creation date, environment |
| Delete | Permanently remove the key |
Webhooks
What Are Webhooks?
Webhooks notify your server when events occur in Waffo Pancake.Available Events
| Event | Trigger |
|---|---|
order.completed | Order completed |
subscription.activated | Subscription activated |
subscription.payment_succeeded | Subscription payment succeeded |
subscription.updated | Subscription updated |
subscription.canceling | Subscription cancellation scheduled |
subscription.canceled | Subscription ended |
subscription.uncanceled | Subscription cancellation reversed |
subscription.past_due | Subscription payment past due |
refund.succeeded | Refund processed successfully |
refund.failed | Refund processing failed |
Setting Up Webhooks
Webhook Payload Example
All IDs are UUID v4 format. Amounts are in the smallest currency unit. Timestamps are ISO 8601 UTC.
Webhook Best Practices
Respond Quickly
Respond Quickly
Return 2xx status within 30 seconds. Process heavy work asynchronously.
Handle Duplicates
Handle Duplicates
Events may be sent multiple times. Use event IDs for deduplication.
Retry Logic
Retry Logic
Failed webhooks retry up to 5 times with increasing delays (5min, 30min, 2h, 24h).
Monitor Failures
Monitor Failures
Check webhook delivery logs in the Dashboard for failures.
API Documentation
Base URL
Architecture
Waffo Pancake uses a hybrid API:- REST (POST) for all write operations via
/v1/actions/... - GraphQL for all read operations via
/v1/graphql
Authentication Example
API Key (Server-to-Server) using SDK:Common Endpoints
| Endpoint | Method | Description |
|---|---|---|
/v1/actions/onetime-product/create-product | POST | Create one-time product |
/v1/actions/subscription-product/create-product | POST | Create subscription product |
/v1/actions/onetime-order/create-order | POST | Create checkout session |
/v1/actions/subscription-order/create-order | POST | Create subscription checkout |
/v1/graphql | POST | Query data (GraphQL) |
Full API Reference
Complete endpoint documentation with request/response examples.
Security Best Practices
Environment Variables
Store private keys in environment variables, never in code.
Key Rotation
Regularly rotate keys, especially after team changes.
Separate Keys
Use different API keys for test and production environments.
Secure Storage
Store private keys using your platform’s secret management.
Testing
Test Mode
Use test mode for development:- All endpoints work identically
- No real charges processed
- Test card numbers available
- Full webhook testing
Test Cards
| Card Number | Behavior |
|---|---|
4242 4242 4242 4242 | Success |
4000 0000 0000 0002 | Declined |
4000 0000 0000 9995 | Insufficient funds |
Logs and Debugging
Webhook Logs
Track webhook deliveries:- Event type
- Delivery status (success/failed)
- HTTP response from your endpoint
- Retry attempts and timestamps