Embed PlayCamp’s WebView UI in your game to provide creator boost functionality. This is the fastest integration method — no additional UI development required.Documentation Index
Fetch the complete documentation index at: https://playcamp.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
When to Use This Method
- You want to provide creator boost functionality quickly
- You don’t need to build a custom UI
- PlayCamp’s built-in creator search/selection UI works for your game
Full Flow
Development Tasks
| # | Task | Owner | Description |
|---|---|---|---|
| 1 | Place PlayCamp entry point | Game Client | Add icon/button in game |
| 2 | OTT issuance endpoint | Game Server | Issue OTT on client request |
| 3 | Open WebView | Game Client | Open WebView URL with OTT |
| 4 | Webhook receiver endpoint | Game Server | Receive boost match results |
| 5 | Payment registration API | Game Server | Send in-game purchases to PlayCamp |
Step 1: Issue OTT (Game Server)
Issue a One-Time Token (OTT) from your game server to PlayCamp SDK API. OTT is single-use with 60-second TTL, so you must issue a new one each time the user opens WebView.- cURL
- Node SDK
- Go SDK
Details: WebView Integration - OTT API
Step 2: Open WebView (Game Client)
Open the WebView URL with the OTT received from the game server.Base URL
| Environment | URL |
|---|---|
| Sandbox | https://sandbox-sdk-api.playcamp.io/webview/?ott={token} |
| Live | https://sdk-api.playcamp.io/webview/?ott={token} |
Optional Parameters
| Parameter | Description | Example |
|---|---|---|
lang | Language (ko, en) | &lang=ko |
tabs | Limit visible tabs | &tabs=sponsor |
primaryColor | Theme color (hex, without #) | &primaryColor=FF6B35 |
WebView supports both in-game embedded browsers and external browsers (mobile/PC). Choose what fits your game environment.
Details: WebView Integration - URL Configuration
Step 3: Receive Boost Match via Webhook (Game Server)
When the user selects a creator in WebView, PlayCamp sends the match result to your game server’s webhook URL.Payload (sponsor.created)
| Field | Description |
|---|---|
userId | Game user ID (the value passed when issuing OTT) |
campaignId | Campaign ID |
creatorKey | Creator identifier selected by the user |
Signature Verification
Verify that the request came from PlayCamp using theX-Webhook-Signature header.
- Node SDK
- Go SDK
When a boost is removed, a
sponsor.ended event is triggered with the same data structure (userId, campaignId, creatorKey).Details: Webhook Events
Step 4: Register Payments (Game Server)
When an in-game purchase occurs, send the payment information to PlayCamp. Registered payments are automatically attributed to the user’s boosted creator.- cURL
- Node SDK
- Go SDK
Payments can be registered individually or in bulk (up to 1,000 at once). For refunds, call
POST /payments/{transactionId}/refund.Details: Payment Registration
Step 5: Settlement
Monthly settlement is processed based on payment data.- Revenue Close — Payment data aggregated at end of each month
- Revenue Reconciliation — Match PlayCamp settlement data with your internal records
- Settlement Payment — Payment after reconciliation confirmation
- Creator Settlement — PlayCamp distributes revenue to creators
Details: Settlement