Environments: Stage vs. Live
Frisbii Media provides two separate environments. Always develop and test against the stage environment. The stage and live environments use different Company IDs and different SDK URLs.
Overview
Stage | Live | |
|---|---|---|
Purpose | Development & testing | Live traffic |
Company ID | Different from live | Your live Company ID |
JavaScript SDK URL |
|
|
REST API base URL |
|
|
API docs (Swagger) |
|
|
Payments | Test payments only, no real charges | Real payments |
JavaScript SDK
Stage:
<script src="https://static.frisbii-media-stage.com/web/v1/frisbii_media.min.js"
data-company-id="{your_stage_companyId}"
data-lang="en"></script>
Live:
<script src="https://static.frisbii-media.com/web/v1/frisbii_media.min.js"
data-company-id="{your_live_companyId}"
data-lang="en"></script>
REST API base URI
Stage (PHP/Guzzle example):
$client = new GuzzleHttp\Client(['base_uri' => 'https://api.frisbii-media-stage.com/api/v3.0/']);
Live:
$client = new GuzzleHttp\Client(['base_uri' => 'https://api.frisbii-media.com/api/v3.0/']);
Checklist before going to production
Replace the JavaScript SDK URL with the live URL
Replace the stage Company ID with your live Company ID
Replace the stage API base URI with the live URI
Set
debugMode => falsein allpreparePurchasecallsTest a real payment end-to-end in production with a small-value product
Server time
Frisbii Media relies on correct date and time for token validation and subscription calculations. Make sure your server runs NTP and that its clock is accurate. Tokens with a skewed timestamp will be rejected.