Skip to main content
PlayCamp Partner Gateway relays authentication, webhook conversion, and payment synchronization between your game server and PlayCamp SDK API. This allows you to integrate with PlayCamp while maintaining your existing API specifications.
Partner Gateway integration requires prior setup by a PlayCamp technical engineer. Please discuss with your PlayCamp representative before starting. Authentication method, webhook payload format, and payment API specifications must be agreed upon in advance.

When to Use This Method

  • Your game server already has its own API specifications that differ from PlayCamp’s standard format
  • Your authentication method differs from PlayCamp’s standard (Bearer Token) — e.g., SHA256 custom signatures
  • You prefer Gateway-polled payment synchronization instead of directly sending payments to PlayCamp
  • You want to minimize changes to your existing systems while integrating PlayCamp

Full Flow

Development Tasks

The specific specifications for tasks 2, 4, and 5 are finalized during prior consultation with the PlayCamp technical engineer.

Step 1: WebView Entry (via Gateway)

Instead of calling PlayCamp WebView directly, you go through the Partner Gateway URL. The Gateway verifies authentication and redirects to PlayCamp WebView.

Entry URL

Parameter names (usn, camp_code, custom_data) may vary per game. Actual parameter names are finalized during prior consultation with the PlayCamp technical engineer.

Authentication Method

Generate signature data on the game server and pass it to the client. Typically uses SHA256-based signature + timestamp expiry verification.
  • Signature generated using a pre-shared secret key (sharedKey)
  • Timestamp validity check prevents replay attacks
The specific signature generation method and parameter structure are provided during consultation with the PlayCamp technical engineer.

Response

Step 2: Webhook Receiver (Gateway → Game Server)

When the user selects a creator in WebView, events flow from PlayCamp → Gateway → Game Server. The Gateway converts PlayCamp’s standard format into a format your game server can process.

Event Types

Game Server Receives (Example)

The payload format is negotiated to match your game server’s existing specifications. The example above is for reference only — actual field names and format are finalized during prior consultation.

Game Server Response

Return HTTP 200 with a result on success.
On failure responses, the Gateway automatically retries (up to 5 times with progressive intervals).

callbackId Usage

The custom_data passed during WebView entry is stored as callbackId in PlayCamp. The same value is included in webhook events, so your game server can match the original entry request with webhook events.

Step 3: Payment Sync (Gateway Polls)

Instead of your game server sending payments directly to PlayCamp, the Gateway periodically polls your game server’s payment API and bulk-registers them with PlayCamp. Provide an API on your game server that returns payment history by period, and the Gateway will periodically poll it to automatically register payments with PlayCamp.
  • Game server’s role: Provide a query API that returns payment history by date range
  • Gateway’s role: Automatically converts game server responses to PlayCamp Bulk Payment API format and sends them
  • Deduplication: Automatic deduplication on PlayCamp’s side based on transaction ID
  • Auto-retry: Progressive retry intervals on transfer failure
The payment query API endpoint, authentication method, and request/response format are finalized during consultation with the PlayCamp technical engineer. If your game server already has a payment query API, its existing specification can be used as-is.

Step 4: Settlement

Monthly settlement is processed based on payment data.
  1. Revenue Close — Payment data aggregated at end of each month
  2. Revenue Reconciliation — Match PlayCamp settlement data with your internal records
  3. Settlement Payment — Payment after reconciliation confirmation
  4. Creator Settlement — PlayCamp distributes revenue to creators
Details: Settlement

Security

Comparison with Direct WebView Integration