Shoppingate Logo
HomePartnerSell on E-commAbout UsContact UsDevelopers
Documentation
Get started
  • Getting started
  • Environments
Mini-app development
  • Authoring
  • app.json config
  • Lifecycle
  • Routing & query
  • Host functions
  • · orderPayment
  • Permissions
  • Deep links
Backend integration
  • Authentication
  • Endpoints
  • Webhooks
Building

Host functions

The runtime shell exposes a fixed set of functions to the mini-app JavaScript through the SDK — the host bridge. Public functions are available to every approved mini app; restricted functions require an explicit request in the developer portal and admin approval before they are granted.

Function
What it does
Tier
orderPayment
Create the order and collect payment in a single call — wallet, card, Apple Pay, or Tamara. Resolves when the customer finishes the payment sheet; rejects if they cancel.
Public
getOrderHistory
List past orders the current user placed inside this mini app.
Public
getUserToken
Mint a short-lived signed JWT (10-min default) the mini app hands to its own backend for login. Your backend verifies it against the Shoppingate identity endpoint and gets back the confirmed SG user id and consent state — plus name, email, phone, phone code when the user has granted data-sharing consent to this mini app.
Restricted
createSupportTicket
File a customer-support ticket on behalf of the user, routed to Shoppingate's CRM.
Public

Deep dive on the checkout function: orderPayment.

Need help? We’re here.

Our team is ready to support you in every step of your experience.

Email Us
[email protected]
Sell With SGContact UsTerms of ServicePrivacy PolicyFAQTravel FAQ
Connect with us
X / TwitterLinkedInInstagramFacebookTiktok

Copyright © Shoppingate 2026

Mada
Visa
Mastercard
Apple Pay
Tamara