ShoppingateShoppingateDevelopers
shoppinggate.app ↗
Documentation
  • What is a Mini App
  • Why Mini Apps
  • API integration
  • SDK
  • Webview
  • Mini App architecture
  • Getting started
  • Choosing your path
  • Introduction
    • Introduction
    • Sign up & login
    • Dashboard & analytics
    • Mini-Programs
    • Submit & publish a version
    • App Binding
    • Privacy Settings
    • Allowed URL
    • Users & roles
    • Introduction
    • Become a Mini-App vendor
    • API keys
    • My Mini-Apps
    • Orders
    • Webhook
    • Deep-link config
    • Introduction
    • Install & log in
    • Create a project
    • The workspace
    • Preview & upload
  • Introduction
  • Configuration
  • Lifecycle
  • Routing & query
  • Host functions
  • orderPayment
  • Permissions
  • User info
  • Introduction
  • Configuration
  • SDK
  • Lifecycle
  • Routing & query
  • Host functions
  • orderPayment
  • Permissions
  • User info
  • Web app and shell calls
  • Look and feel
  • Overview
    • Verify user
    • Create order
    • Get order
    • Update order status
    • Charge an order
    • Send a notification
  • Subscriptions
    • Create a subscription
    • List subscriptions
    • Get a subscription
    • Update a subscription
    • Reschedule next charge
    • Change plan (upgrade)
    • Cancel a subscription
  • Webhooks
Introduction

What is a Mini App

A Mini App is a small app that runs inside the Shoppingate app. This section explains the idea behind it, how the system works, and why it is a better way to bring a business into Shoppingate than the usual ways.

Saloni's story

Meet Saloni, a spa. Saloni takes reservations for massage, body care and more. It has a website, a backend with its services and reservations, and a small team of developers.

Saloni wants the people who use the Shoppingate app every day to book at it — without downloading another app, creating another account, or typing their card details again.

We follow Saloni through this whole section: the usual ways it could connect to Shoppingate, what each one costs, and how a Mini App solves it.

The principle: an app inside an app

Think of the Shoppingate app as a shopping mall. The mall owns the building: the entrances, the security, the payment counters, and the visitors walking through. Each shop inside runs its own business — its own products, its own staff, its own way of selling. A shop doesn't build its own building, and the mall doesn't run the shops.

A Mini App works the same way. Each side does what it is best at:

  • The Shoppingate app has the users, knows who they are, takes payment, and can reach the phone — the camera, location, photos and more.
  • Your Mini App brings what only you have: your products, your screens, and your way of doing business.

The user sees one app. They open your Mini App inside Shoppingate, they are already signed in, and they pay the way they always pay in Shoppingate.

The Mini App system

A Mini App is not only your code. It is part of a system with four parts:

SHOPPINGATE APPMini Appanother businessMini Appanother businessSaloniyour Mini AppWhat the app gives every Mini AppThe signed-in user · PaymentCamera, location, photos and more · SearchThe rules around themEvery version reviewed · Permission per featureApproved domains only · Privacy policy shownSaloni's backendservices, reservations — stays yoursown dataShoppingate backendusers, payments, ordersAPI · webhooksSaloni's toolsSG Studio · Dev portalMerchant portalpublish
The Mini App system: Saloni's Mini App lives inside the Shoppingate app, next to other Mini Apps. It uses what the app gives every Mini App, and still talks to Saloni's own backend.

1. The Shoppingate app

The host. It runs many Mini Apps from many businesses, each one separate from the others. It gives every Mini App the same things — the signed-in user, payment, access to the phone, and a place where users can search for it — and it applies the same rules to all of them.

2. Your Mini App

Your code: your pages and your logic. You can build it in two ways:

  • Native — your screens are drawn by the Shoppingate app itself, for the fastest and smoothest experience. See Native mini-app.
  • Web view — the web app you already have opens inside a small Mini App, with no rewrite. See Web view mini-app.

3. Your backend

Your backend stays yours — your products, stock, prices and orders. Your Mini App calls it directly, on domains approved for it. Your backend and Shoppingate's backend talk to each other only for what they share: confirming who the user is, and creating and updating orders. See Backend integration.

4. The rules and the tools

Around every Mini App there are the same rules: every version is reviewed before it goes live, the user allows each feature only when they need it, your Mini App loads only from approved domains, and your privacy policy is shown to users inside the app.

And the same tools: SG Studio to write and test your code, the Dev portal to create your Mini App and publish its versions, and the Merchant portal to run the business side. See Environments.

How a Mini App reaches users

  1. 1
    Build
    Write and test your Mini App in SG Studio, in the simulator and on your phone.
  2. 2
    Upload
    Upload a version from SG Studio to the Dev portal.
  3. 3
    Review
    Submit the version. Shoppingate reviews it.
  4. 4
    Live
    Publish it. Users find it in the Shoppingate app — no app update needed.

Every update after that follows the same path: build, upload, review, live.

Saloni's story

For Saloni, this means its team builds the spa once, as a Mini App. Shoppingate users find Saloni by searching inside the app, open it, book a massage, and pay — already signed in, never leaving Shoppingate. When Saloni adds a new body care package, it uploads a new version, and once it is reviewed, every user has it.

NextWhy Mini AppsThe usual ways to connect two businesses, and what a Mini App changes.→