Skip to main content

180 Core Platform Architecture

Welcome to the 180 Core Platform documentation. 180 Core provides developers with a sovereign, zero-friction infrastructure layer combining Universal Authentication (180 Identity) and 1-Click Sovereign Payments (180 Pay) into any web, mobile, or desktop application.

graph TD
Client[Client App / Mobile / Web] -->|1-Tap Login & Checkout| SDK[180 Core SDK]
SDK -->|OAuth 2.0 PKCE / Popup| Identity[180 Identity Engine]
SDK -->|Sovereign Bottom Sheet| Pay[180 Pay Checkout Engine]

subgraph "180 Core Sovereign Cloud"
Identity --> AuthDB[(Sovereign Identity DB)]
Identity --> WA[WhatsApp & MSG91 OTP Gateway]
Pay --> Vault[Sovereign Payment Vault]
Pay --> SubEngine[Universal Recurring Billing]
Pay --> BYOG[Bring Your Own Gateway / Razorpay / Stripe]
end

Vault -->|Signed HMAC Webhook| DevBackend[Developer Backend Server]
DevBackend -->|Verify x-180-signature| Fulfillment[Instant User Entitlement & Provisioning]

The Dual Pillars of 180 Core​

1. 180 Identity (Universal Sovereign Authentication)​

  • Universal Single Sign-On: Authenticate users across web and mobile using OAuth 2.0 + OpenID Connect with full PKCE protection.
  • WhatsApp 1-Tap OTP: Zero-password, zero-friction authentication powered by instant WhatsApp and SMS verification.
  • Per-App Identity Isolation: Usernames are scoped strictly per application (AppUserIdentity), guaranteeing that username collisions never spill between different developer apps.
  • 15-Minute Ephemeral Access Tokens & 7-Day Rotating Refresh Tokens: High-security token lifecycle preventing persistent breach exposure.
  • Central User Revocation: Developers can immediately revoke active sessions from their console or via server-to-server REST API.

2. 180 Pay (1-Click Sovereign Payments & Subscriptions)​

  • 1-Click Bottom Sheet & Popup Checkout: Ultra-fast UPI, Sovereign Wallet, Credit Card, and Netbanking modal checkout that eliminates 90% of gateway redirection drop-offs.
  • Universal Recurring Subscriptions: Built-in monthly and annual recurring subscription management with automated dunning cycles, trial periods, and grace windows.
  • Embeddable Pricing Tables: Plug-and-play Web Component (<one-eighty-pricing-table>), React component, and headless JSON API.
  • Bring Your Own Gateway (BYOG): Developers can use 180 Platform default rails or connect their own Razorpay / Stripe credentials directly.
  • Dynamic Geo-Pricing: Automated IP-based country detection that presents local currencies (INR, USD, EUR, GBP, BRL) with custom purchasing power parity (PPP) discounts.
  • HMAC SHA-256 Webhook Verification: High-security, cryptographically signed webhook notifications with timestamp-based replay attack defense.

3 API Credentials Model​

Every developer application in 180 Workspace receives three cryptographic keys:

Key NamePrefixVisibilityPurpose
Client ID180_client_...PublicIdentifies your application in SDKs, login URLs, and checkout sheets.
Client Secret180_secret_...Server-OnlyAuthorizes backend token exchanges and server-to-server checkout session creation.
Webhook Secretwhsec_...Server-OnlyVerifies HMAC SHA-256 signatures on incoming webhook notifications (x-180-signature).

:::caution Security First Never expose your CLIENT_SECRET or WEBHOOK_SECRET in frontend client code, git repositories, or mobile bundles. Store them in secure environment variables (.env). :::



💡 The "Zero Custom Screen" Mandate​

A foundational architectural invariant of the 180 Core platform is that developers NEVER need to build, style, or maintain custom authentication or checkout screens.

1. For 180 Identity (Zero Custom Auth Screens)​

  • Do developers need to build custom login UI? NO.
  • Developers do NOT build:
    • ❌ Login or sign-in screens
    • ❌ User registration or sign-up forms
    • ❌ WhatsApp 1-Tap OTP or SMS verification popups
    • ❌ Biometric Passkey / WebAuthn enrollment modals
    • ❌ Forgot password or account recovery flows
    • ❌ 2-Factor Authentication (2FA) screens
    • ❌ OAuth 2.0 Consent dialogs
  • How it integrates:
    1. In-DOM Bottom Sheet / Glass Modal (Web): With 1 line (OneEighty.signIn({ uxMode: 'bottom_sheet' })), an adaptive sheet slides up on mobile or an ultra-sleek glass modal opens on desktop. The user never leaves your application.
    2. Drop-in Web Component: <one-eighty-auth-button> (HTML) or <OneEightyButton /> (React) renders an animated, responsive button that triggers the full flow.
    3. Native Mobile (Flutter / React Native / iOS / Android): Launch https://profile.180core.cloud/auth/login?client_id=... in an In-App WebView or Custom Tab. Once authenticated, 180 Identity redirects to the custom URI scheme (e.g. myapp://oauth/callback?code=...) or communicates directly via the OneEightyMobileChannel bridge.

2. For 180 Pay (Zero Custom Payment Screens)​

  • Do developers need to build custom payment UI? NO.
  • Developers do NOT build:
    • ❌ Payment method selector screens
    • ❌ Credit / Debit card input forms
    • ❌ UPI QR codes or Intent triggers
    • ❌ Coupon code validation & discount math
    • ❌ World Bank PPP purchasing power parity currency conversion logic
    • ❌ 3D Secure OTP verification screens
    • ❌ Receipt generation & fulfillment screens
  • How it integrates:
    1. Adaptive Bottom Sheet / Modal (Web): Call OneEightyPay.checkout({ amount: 499, currency: 'INR' }). The bottom sheet slides up, handles method selection (UPI, Cards, Netbanking, Prepaid Wallet, PPP Discounts), and resolves securely.
    2. Hosted Checkout Screen (Mobile WebViews): Open https://profile.180core.cloud/checkout/:sessionId. On payment capture, 180 Pay posts to OneEightyPaymentChannel and redirects back to the mobile custom scheme (myapp://payment/callback?status=success&session_id=...&amount=499) with full transaction query parameters.
    3. Shareable Payment Links (/pay/l/:slug): Completely zero-code. Generate a link and share it anywhere.
    4. Drop-in Component: <one-eighty-pay-button amount="499" currency="INR" title="Upgrade Now"></one-eighty-pay-button>.

🔄 Universal Parameter Normalization​

180 Core's backend and SDK support seamless bidirectional mapping between snake_case (RFC standard) and camelCase (JavaScript/Dart standard):

RFC / Snake CaseSDK / Camel CaseAlternate AliasesPurpose
client_idclientIdapp_idRegistered application identifier
redirect_uriredirectUricallback_urlOAuth callback target
return_urlreturnUrlsuccess_urlPayment success redirection target
cancel_urlcancelUrlcancel_uriPayment cancellation target
order_idorderIdorderReferenceUnique merchant order ID
session_idsessionIdcheckoutSessionIdSigned checkout session ID
coupon_codecouponCodecouponPromotional or PPP discount code

📱 Mobile & Cross-Platform (Flutter / React Native) Guidelines​

1. Custom URI Scheme Handling​

To receive callbacks on native mobile devices:

  • Android (AndroidManifest.xml):
    <activity android:name=".MainActivity" android:exported="true">
    <intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="myapp" android:host="oauth" />
    <data android:scheme="myapp" android:host="payment" />
    </intent-filter>
    </activity>
  • iOS (Info.plist):
    <key>CFBundleURLTypes</key>
    <array>
    <dict>
    <key>CFBundleURLSchemes</key>
    <array>
    <string>myapp</string>
    </array>
    </dict>
    </array>
  • Register Redirect URIs in Developer Console: Add myapp://oauth/callback and myapp://payment/callback to Allowed Redirect URIs at https://developer.180core.cloud.

2. Flutter In-App WebView Mobile Bridges​

Flutter applications can communicate seamlessly with hosted 180 Core screens using JavaScript bridges:

InAppWebView(
initialUrlRequest: URLRequest(url: WebUri("https://profile.180core.cloud/auth/login?client_id=$clientId&redirect_uri=$redirectUri")),
onWebViewCreated: (controller) {
controller.addJavaScriptHandler(
handlerName: 'OneEightyMobileChannel',
callback: (args) {
final data = jsonDecode(args[0]);
if (data['type'] == '180_IDENTITY_SUCCESS') {
// Handle authentication code/token
}
},
);
controller.addJavaScriptHandler(
handlerName: 'OneEightyPaymentChannel',
callback: (args) {
final data = jsonDecode(args[0]);
if (data['type'] == '180_PAYMENT_SUCCESS') {
// Handle payment confirmation
}
},
);
},
)

🌐 Authoritative Canonical Domains​

ServiceEnvironmentURLKey Role
Developer ConsoleProductionhttps://developer.180core.cloudApp Registration, OAuth Credentials, Allowed Origins
Developer ConsoleLocal Devhttp://localhost:3008Local developer dashboard
180 Core Backend APIProductionhttps://api.180core.cloudOIDC Tokens, JWKS Keyring, UserInfo, 180 Pay APIs
180 Core Backend APILocal Devhttp://localhost:4003Local OIDC and payment service
Universal Identity UI / Profile & CheckoutProductionhttps://profile.180core.cloudIn-DOM Bottom Sheet, WhatsApp OTP, Sovereign Checkout
Universal Identity UI / Profile & CheckoutLocal Devhttp://localhost:3009Local auth, profile and checkout UI
Public JWKS KeyringProductionhttps://api.180core.cloud/certs/jwks.jsonStateless RS256 token validation
Documentation PortalProductionhttps://docs.180workspace.comDeveloper documentation & guides
Documentation PortalLocal Devhttp://localhost:3005Local Docusaurus portal

Next Steps​