1. Embedded SDK
Salla Platform Docs
  • Embedded SDK
    • Overview
    • Getting Started
    • Create an Embedded App
    • Authentication
    • App Design Guidelines
    • Installation
    • Playground
  • Auth Module
    • Get Token
    • Client Introspect
    • Refresh Token
  • Page Module
    • External Redirects
    • Navigation
    • Set Page Title
  • Nav Module
    • Create Navbar Action
    • Listen for Navbar Actions
    • Clearing Navbar Actions
    • Add Navbar Item
    • Update Navbar Item
    • Listen for Navbar Item Click
    • Remove Navbar Item
  • UI Module
    • Confirm Dialogs
    • Toast Notifications
    • Loading States
    • Breadcrumbs
  • Checkout Module
    • Create Checkout
    • Get App Add-ons
    • Subscribe for Payment Result
  • Endpoints
    • Token Introspect
      POST
  • Resources
    • Support
    • Common Examples
  • Report Builder
    • Overview
    • Getting Started
    • JMESPath Tutorial
    • Understanding the Report Lifecycle
    • Salla Reports Examples
    • Set up Store data using merchant APIs
    • Report Types
      • Unit
      • Bar
      • Breakdown
      • Calendar
      • Distribution
      • Pipe
      • Plot
      • Ranking
      • Summary
      • Agrid
    • APIs
      • Token Introspect
  • App Onboarding
    • Overview
    • Get Started
    • Interfaces and Responses
    • Example
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla Apps Playbook
  • Salla CLI
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla Apps Playbook
  • 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.

What you'll learn:#

Tools
The Interactive Playground
Use Cases

Tools#

There are two tools we recommend to use for Embedded App testing which are Event Console and Interactive Playground.
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 to 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-07-09 11:27:26
Previous
Installation
Next
Get Token