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

Why Mini Apps

When two businesses connect their services, they usually choose one of three ways. Each one works, and each one has a cost. A Mini App keeps what works in each and drops the cost.

Saloni's story

Saloni sits down with Shoppingate to plan the connection. On the table are the three usual options: an API integration, an SDK, or a webview. Before choosing, Saloni asks five questions:

  • Who builds and owns the screens our customers see?
  • When we change something, how fast does it reach our customers?
  • Can we use Shoppingate's signed-in users and payment — safely?
  • Will it feel like part of the Shoppingate app — fast and smooth, not like a separate website?
  • How long will it take us to build, and to launch?

The three usual ways

API integration →
The two backends exchange data, and Shoppingate builds the screens for your service.
SDK →
Your code is built into the Shoppingate app itself.
Webview →
Your website opens inside the Shoppingate app.

Each one answers some of Saloni's questions well and the rest badly. The next pages go through them one by one, with Saloni trying each.

One change, four ways

The clearest difference is what happens when Saloni changes something — a new service page, a fixed bug, a new booking option:

APISaloni changesits APIShoppingatebuilds the screensApp storereviews the appUsersupdate the appSDKSaloni changesits SDKShoppingatereleases the appApp storereviews the appUsersupdate the appWebviewSaloni changesits websiteLive at oncenobody checks itMini AppSaloni uploadsa new versionShoppingatereviews itLive for everyoneno app update
How one change by Saloni reaches users, in each way.
  • With an API or an SDK, the change waits for Shoppingate's work, an app store review, and every user updating the app.
  • With a webview, it is live at once — but nobody checks it, so a mistake, or an unsafe page that can reach the user's data and payment, is live at once too.
  • With a Mini App, Saloni uploads the version, Shoppingate reviews it, and it is live for everyone — with no app release and no app update.

Side by side

API
SDK
Webview
Mini App
Who builds the screens
Shoppingate
You
You
You
Shipping a change
Both teams, then an app release
An app release, then users update
At once, unchecked
You upload; live after review
User, payment, phone
Through Shoppingate's screens
Full access
Only if the host builds a wrapper
Through the app, with permission
Control and review
Yes
Only with the app release
None
Every version reviewed
Security
Server to server
Runs with the app's full access
Can load anything
Approved domains, approved functions, permission per feature
Being found
Wherever Shoppingate puts it
Wherever Shoppingate puts it
A link someone opens
Search inside Shoppingate

How it helps

For your business
  • ✓Reach Shoppingate's users inside the app they already use.
  • ✓Ship on your own schedule — no Shoppingate app release.
  • ✓Your screens, your experience, your brand.
  • ✓Payment through Shoppingate — wallet, card, Apple Pay and Tamara — with no checkout to build.
  • ✓Orders, webhooks and API keys in one place, the Merchant portal.
For your users
  • ✓Nothing to download, no new account.
  • ✓Already signed in.
  • ✓Pay the way they always pay in Shoppingate.
  • ✓Asked for a permission only when they need the feature.
  • ✓Your privacy policy shown inside the app, the same way for every Mini App.
For the platform
  • ✓Every version reviewed before it goes live.
  • ✓Only approved domains load.
  • ✓Private functions, like payment, only for approved Mini Apps.
  • ✓Each Mini App separate from the others.
  • ✓One way of working for every business.

The answers

1.Who builds and owns the screens our customers see?
API
Shoppingate builds and owns them. You only send data.
SDK
You build them, but they ship inside the Shoppingate app.
Webview
You build and own them — they are your website.
Mini App
You build and own them, inside the Shoppingate app.
2.When we change something, how fast does it reach our customers?
API
Slow. Both teams work on it, then an app release, an app store review, and every user updating the app.
SDK
Slow. An app release, an app store review, and every user updating the app.
Webview
At once — but nobody checks it.
Mini App
Fast, and checked. You upload a version, Shoppingate reviews it, and it is live for everyone — no app update.
3.Can we use Shoppingate's signed-in users and payment — safely?
API
Yes, safely — but only through screens Shoppingate builds.
SDK
Yes, but not safely: your code runs with the app's full access.
Webview
Only if Shoppingate builds a wrapper — and then any page that loads can use it.
Mini App
Yes, safely. Through the app's functions: Private ones, like payment, only when approved, and each feature only when the user allows it.
4.Will it feel like part of the Shoppingate app — fast and smooth, not like a separate website?
API
Yes — the app's own team builds the screens.
SDK
Yes — your code runs as part of the app.
Webview
No. It loads from the network every time, and feels like a website.
Mini App
Yes. A native Mini App's screens are drawn by the Shoppingate app itself, and it is cached on the phone after the first open, so it opens fast every time after.
5.How long will it take us to build, and to launch?
API
Long. Shoppingate has to design and build your screens, often behind other partners, then wait for an app release.
SDK
Long. You build a library, Shoppingate builds it into the app, then an app release and an app store review.
Webview
Short, if you already have a website — but Shoppingate has to build the wrapper first.
Mini App
Short. Reuse your web app with no rewrite, or build native screens fast with the Taro framework. No Shoppingate app release.
Saloni's story

Saloni's answer: it wants to own its screens like with a website, reach users and payment like with an SDK, and still be trusted by Shoppingate like with an API. That is what a Mini App gives it.

Read on to see Saloni try each way, or jump to the Mini App architecture.

NextAPI integrationSaloni's first try: connect the two backends.→