0Bit public documentation
Mobile integration
Use Gate hosted redirect from iOS and Android applications.
Gate does not expose a separate native money-flow API. Create a GateSession on your server and open the hosted Gate checkout using the browser SDK's redirect helper or an equivalent system-browser navigation.
GateRamp.redirectToCheckout({
environment: 'sandbox',
publishableKey: 'pk_test_...',
clientSecret: session.client_secret,
});
For a native app, set the session's return_url to an HTTPS universal link or app link controlled by your organization. Validate the returned state against the order stored on your server.
Security rules:
- create sessions with
sk_*on your backend, never in the app; - pass only
pk_*andclient_secretto the browser surface; - prefer ASWebAuthenticationSession or the system browser over an unrestricted WebView;
- allow navigation only to the configured Gate host and your return origin;
- do not consider the deep-link return a settlement signal;
- confirm completion through signed webhooks and
GET /transactions/{refid}.
Wallet hand-offs, bank authentication, and payment challenges may open additional trusted system-browser or wallet-app surfaces. Your app should tolerate backgrounding and resume by retrieving its own order state rather than replaying session creation.
