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
Web view mini-app

Introduction

A web view Mini App brings the web app you already have into the Shoppingate app — and connects it to Shoppingate's features.

What it is

A small Mini App opens your web app inside Shoppingate, full screen. Your web app stays where it is, on your own server, and keeps working as it does today — now with the signed-in user, payment and the device within reach.

There is no rewrite. Your web app follows a few standards and a small configuration, and it becomes a Mini App.

Why a Mini App

Two systems usually connect in one of three ways. Each one has a cost:

API integration
The two systems exchange data, and one side builds all the screens for the other's service. Every new feature needs work and coordination on both sides, and you don't control how your service looks to its users.
SDK
Your code is built into the other company's app. Every change waits for their app release and the app-store review, and the two codebases are tied together.
Regular webview
Your website opens inside the other app. A good host can wrap it with shared payment and user info — but the wrapper is only a container. Your app still lives and changes outside the host's control, with no review, no release management, no tools, and no place in the app where users find it.

A Mini App keeps the strengths of each way and drops their costs. You ship on your own schedule, like a website. You reach the signed-in user, payment and the device, like an SDK. And unlike a wrapper, you get a whole platform around your app: review and release control, security rules, tools, business tools and a place where users find you.

Security comes first

In any webview integration, the most important question is security: who can load inside the app, who can call its functions, and how the user's data is asked for. This is where a regular webview is weakest:

  • The user is asked for everything at once, before the webview opens — accept it all, or don't get in.
  • The host can add its functions through a wrapper, but has no control over who uses them — once a function is there, any page can call it.
  • The host doesn't approve what loads. The partner's site can point anywhere, at any time.
  • There's no place in the app where users can see what the partner collects, or why — each partner shows it its own way, if at all.

A Shoppingate web view Mini App closes each of these gaps:

Regular webview
Shoppingate web view Mini App
Asking the user
One bottom sheet before opening: accept everything, or don't get in.
Each permission is asked only when the user needs that feature. They can say no to one and still use the rest, and change their mind later in settings.
Host app functions
Added through a wrapper, with no control over who uses them: once a function is there, any page can call it.
Every function is managed in the Dev portal. Public functions are open to every Mini App. Private ones, like payment, must be requested by the Mini App with a reason, and are approved or rejected by the Shoppingate admin. Access is per Mini App — one partner's approval opens nothing for anyone else.
What can load
Whatever the partner's site points to.
Only domains reviewed and approved by the Shoppingate admin. Anything else doesn't load.
The user's data
Each partner shows it its own way, if at all — a bottom sheet or a page before the webview opens.
Your privacy policy is shown to users inside the app, in the same place and the same way for every Mini App. It says:
  • what information you process, and why — for example "location, for delivery"
  • how long you keep it
  • how users can contact you
Native and web together
One web page, nothing else.
Combine both in one Mini App. Build the screens that need to feel fastest as native screens, keep the rest as your web app, and move between them freely.

A regular webview shows your website inside an app. A Shoppingate web view Mini App makes your website a trusted part of the app.

What your Mini App gets

Your web app, no rewrite
Just a few standards to follow and a small configuration.
No Shoppingate app release needed
You publish and update your Mini App yourself, after review.
Opens inside the Shoppingate app
Users don't download anything or leave the app.
Already signed in
Your Mini App knows the Shoppingate user, with no separate login.
Payment through Shoppingate
Wallet, card, Apple Pay and Tamara — with no fees, and no checkout to build.
Device features
Camera, location, photos and more. The user is asked for permission only when they need the feature — not when your Mini App opens.
Found by users
Users can search for your Mini App inside Shoppingate.
The exact screen, every time
Deep links take the user straight to the right screen in your Mini App.

In this section

  1. 1ConfigurationThe small Mini App that hosts your web app.
  2. 2SDKHow the pieces fit, and the SDK your web app loads.
  3. 3LifecycleWhat runs when your Mini App and your web app open, show and close.
  4. 4Routing & queryOpening a page directly, and passing data to your web app.
  5. 5Host functionsOrders, payment, refunds and support tickets from your web app.
  6. 6orderPaymentCreate an order and take payment in one call.
  7. 7PermissionsAsking the user for the camera, location and more.
  8. 8User infoReading the signed-in user, and keeping it current.
  9. 9Web app and shell callsWhat your web app calls itself, and what the shell calls for it.
  10. 10Look and feelMaking your web app feel at home in the Shoppingate app.

Not sure which kind of Mini App fits you? See Choosing your path.