Salla Docs
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Embedded SDK
  • Embedded SDK
    • Overview
    • Getting Started
    • Installation
    • Authentication
    • App Design Guidelines
    • Create an Embedded App
    • Playground
  • Auth Module
    • Get Token
    • Client Introspect
    • Refresh Token
  • Page Module
    • Iframe Resizing
    • External Redirects
    • Navigation
    • Set Page Title
    • UI Module
      • Confirm Dialogs
      • Toast Notifications
      • Loading States
  • Nav Module
    • Create Navbar Action
    • Listen for Nav Actions
    • Clearing Nav Actions
  • Endpoints
    • Token Introspect
      POST
  • Resources
    • Support
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Embedded SDK

Playground

The Embedded SDK Playground is more than just a testing tool—it's a comprehensive Development Sandbox. It allows you to prototype SDK functions, experiment with UI components, and debug communication in real-time before writing a single line of code in your production application.

Tools#

Event Console
Trigger common SDK events with a single click.
Interactive Playground
Write and execute SDK code snippets directly in the dashboard.

Development Workflow#

To begin developing with the Sandbox, follow this lifecycle to connect the Test Kit to your specific app environment:
1
Fork the Sandbox Repo
Fork embedded-sdk-playground and deploy it to your server.
2
Configure the Partner Portal
Configure your App in Salla Partner Portal as explained in here, and set your Iframe URL to point to this deployment.
3
Install on a Demo Store
Install your application on a Salla Demo Store via the Partner Portal. This establishes the necessary merchant context required for the SDK to function.
App Installation on Demo Store
4
Launch the Application
Inside the Merchant Dashboard, navigate to Apps > My Apps and click Run App on your application.
5
Initialize the Handshake
The dashboard will render the Test Kit inside an iframe. The Sandbox automatically triggers the embedded.init() and embedded.ready() flow, providing you with a live, authenticated environment.
6
Prototype & Develop
Use the built-in Event Console or the Code Playground to develop and validate your app's intended SDK functionality.
Tip
Update the Test Kit's backend verification logic (e.g., /server/functions/verify-token.js) to communicate with your own backend service to ensure the full authentication handshake is working correctly

Event Console#

The Event Console provides a library of pre-configured SDK events. This allows you to instantly verify how native dashboard elements—such as Toasts, Modals, and Navbar Actions—behave within the host environment.
Event Console
By clicking any event trigger, the Sandbox calls the corresponding SDK function and logs the actual event being sent. This is the ideal tool for checking visual consistency and confirming that your event data is correctly interpreted by the dashboard.

The Interactive Playground#

For custom logic development, the Sandbox features an integrated Code Editor. This playground exposes the global embedded object with full TypeScript support, allowing you to write complex, multi-step scripts and execute them directly against the live dashboard.
Code Playground

Use Cases#

Live Scripting: Test logic like conditional navigation or dynamic table updates.
Response Handling: Inspect the results of promise-based methods like embedded.ui.confirm().
UI Testing: Test the dashboard components functionality.

Important Information#

Global Access: Within the playground, the SDK is available via window.salla.embedded.
Message Logs: Always keep the Message Log open while using the playground to monitor the exact JSON traffic and catch any validation errors in your payloads.
Sandbox Sync: The Test Kit is regularly updated to match the latest SDK beta features. Ensure your fork is synced with the upstream SallaApp/embedded-sdk-test-kit repository.

Next Steps#

Setup Authentication
Transition from prototyping to secure session management and backend verification.
Modified at 2026-02-02 12:44:14
Previous
Create an Embedded App
Next
Auth Module