{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-platform/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Glomo iOS SDK v1","siteUrl":"https://docs.glomo.one","llmstxt":{"title":"Glomo developer documentation","description":"Cross-border payments APIs, organised by product. Each product section carries both the explanation of its objects and the job-shaped integration guides that set them up.","details":{"content":"How to use these docs:\n\n- Get started is the front door. It has one section per integration\n  (what you're building), each with the API calls in order and the guide that builds it, plus\n  how to get API keys.\n- The product sections - Payin, Payout, Multi-currency accounts,\n  Verification, Request for Information (RFI) - each hold two kinds of page.\n  Pages titled as a noun (\"Subscriptions\", \"Bank Transfer\") explain what\n  an object is. Pages titled as a job (\"Set up recurring subscriptions\",\n  \"Collect LRS remittances from India\") are complete integration flows\n  and live one level under the object they set up. Match a user's goal\n  against the job-shaped titles first.\n- Reports and Identity and Access Management are the two subjects with no\n  API counterpart. There are no endpoints for reports, users, roles or\n  invites; both pages document the merchant dashboard. A dashboard\n  procedure for something the API also does (a refund, a payout) is NOT\n  here - it stays in the product that owns it.\n- API reference is generated from OpenAPI and carries endpoint detail.\n- The OpenAPI description itself is published as a single self-contained\n  document at /openapi.yaml, and the same document as JSON at\n  /openapi.json. Every $ref is resolved into it, so one fetch is the\n  whole contract: 81 paths, 106 operations, 88 schemas - the same\n  endpoints the API reference pages render. Fetch that instead of\n  reading the 129 pages under /api-reference/.\n- Every page below, in full, is one document at /llms-full.txt. Fetch that\n  instead of the pages one by one. It leaves out the API reference;\n  /openapi.yaml is that.\n- Developer resources covers what every integration touches and no single\n  product owns: auth, errors, pagination, rate limits, webhooks,\n  versioning, supported countries, quotes, the MCP server for AI\n  agents, and the client SDKs.\n"},"sections":[{"title":"Get started","description":"The front door. The ordered API calls for each integration and the guide that delivers it, how to obtain API keys, and the platform glossary.","includeFiles":["**/get-started/**"]},{"title":"Payin","description":"Collecting money: customers, orders, checkout, payment links, payment methods (cards, bank transfer, pay via bank), refunds, disputes, purpose codes, fee models, custom fields, subscriptions, and resident India remittance under LRS. Includes the flows that set each up - bank transfers, subscriptions, LRS remittances, and server-to-server card payments.","includeFiles":["**/payin/**"]},{"title":"Payout","description":"Sending money: the payout life cycle, queued payouts, creating and cancelling a payout, rails, beneficiaries, purpose codes, and the action required state. Includes the flow that sends a payout over the API.","includeFiles":["**/payout/**"]},{"title":"Payment accounts","description":"Holding money for your own customers in Glomo payment accounts that you own: opening an account with the customer, adding funds with a card, balances and the statement, beneficiaries, payout quotes and payouts. Includes the flow that runs an account end to end.","includeFiles":["**/payment-accounts/**"]},{"title":"Multi-currency accounts","description":"Holding money: balances, balance conversion, adding balance, and withdrawing balance.","includeFiles":["**/multi-currency-account/**"]},{"title":"Verification","description":"Proving who someone is and that an account is theirs: KYC, bank account validation, and third-party verification (TPV) with the flow that verifies a payer's bank account.","includeFiles":["**/verification/**"]},{"title":"Request for Information (RFI)","description":"Responding to a compliance request for information, per object - payment link, order, payment, payout - plus compliance reviews and RFIs raised on already-successful payments.","includeFiles":["**/request-for-information/**"]},{"title":"Nivo (Capital markets)","description":"Nivo, Glomo's capital markets suite (Nivo for AMCs, Nivo for Distributors, and overseas investing for brokers and wealth platforms). Mutual fund investments run as payment sessions: the fund, distributor, scheme, plan, ARN and folio roles; the distributor's relationship with a fund and what it fixes; and the flow that opens a session as a distributor.","includeFiles":["**/capital-markets/**"]},{"title":"Reports","description":"The downloadable and scheduled reports a merchant pulls from the dashboard for reconciliation, compliance and treasury: payment, subscription, settlement breakup, balance statement and KYC reports, plus scheduling one for recurring email delivery and customizing the fields and column order of a report. Dashboard only - there is no reports API.","includeFiles":["**/reports/**"],"excludeFiles":["**/payin/**"]},{"title":"Identity and Access Management","description":"Administering who can use a merchant account: one set of credentials across multiple MIDs, switching between them without logging out, the Admin / Member / Sales Partner roles and what each may see and do, and inviting a new member. Dashboard only - there is no users, roles or invites API.","includeFiles":["**/access-management/**"]},{"title":"Settlement holidays","description":"The settlement holiday calendar for 2026 - the Indian and US bank and FX holidays on which payin, payout and settlement to the merchant's bank account may be delayed.","includeFiles":["**/settlement-holidays/**"]},{"title":"API reference","description":"Endpoint reference generated from the Glomo OpenAPI description.","includeFiles":["**/api-reference/**"]},{"title":"Developer resources","description":"What every integration touches and no single product owns: auth, errors, pagination, rate limits, webhooks, versioning, API validations, security, supported countries, quotes, connecting an AI agent to the Glomo MCP server, and the client SDKs - React Native, Flutter, Android and the Unified Web SDK, with per-version references and changelogs. Reports and Identity and Access Management used to be listed here and are now their own sections.","includeFiles":["**/platform/**"]}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"glomo-ios-sdk-v1","__idx":0},"children":["Glomo iOS SDK v1"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Official iOS SDK for integrating Glomo payment checkout flows into your native iOS applications. The public contract is deliberately aligned with the Flutter and Android SDKs."]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Current version: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["v1.3.0"]},". Upgrading from v1.2.0 is a tag bump and two optional listener methods - no API changed and no call site needs to move. v1.3.0 adds ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#checkout-progress-events"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onCheckoutStageChanged"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onCheckoutClosed"]}]},", both with protocol-extension defaults."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Upgrading from v1.1.0? Also a tag bump. v1.2.0 narrows which pages may report a payment result (",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#origin-policy"},"children":["Origin Policy"]},"), and the surfaces the SDK paints before the page loads now follow whether dark mode is switched on for your account (",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#dark-mode"},"children":["Dark mode"]},")."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Upgrading from v1.0.0? Also a tag bump and one optional parameter. v1.1.0 adds ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#dark-mode"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["appColorScheme"]}]},". The public API follows Semantic Versioning from v1.0.0 onward."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Full ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/ios-sdk/changelog"},"children":["Changelog"]}," is also available."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Before using this SDK, you need:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["API credentials (Public Key) from your Glomo dashboard"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["An order ID created via the Glomo API (or a subscription ID for subscription payments)"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"system-requirements","__idx":2},"children":["System Requirements"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Requirement"},"children":["Requirement"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Version"},"children":["Version"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["iOS"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["16.0 or later"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Swift tools"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["5.9 or later"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Distribution"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Swift Package Manager only"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CocoaPods is not supported."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"installation","__idx":3},"children":["Installation"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add the package in Xcode (",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File → Add Package Dependencies"]},") using the repository URL, and select the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1.3.0"]}," release tag:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"text","header":{"controls":{"copy":{}}},"source":"https://github.com/glomopay/glomo-ios-sdk.git\n","lang":"text"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Or declare it in your own ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Package.swift"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"dependencies: [\n    .package(url: \"https://github.com/glomopay/glomo-ios-sdk.git\", from: \"1.3.0\"),\n],\ntargets: [\n    .target(\n        name: \"YourApp\",\n        dependencies: [.product(name: \"glomo-ios-sdk\", package: \"glomo-ios-sdk\")]\n    ),\n]\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The package product is named ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["glomo-ios-sdk"]},". The Swift module is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPaySDK"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"import GlomoPaySDK\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"required-infoplist-entries","__idx":4},"children":["Required Info.plist entries"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Bank flows ask the user to upload documents. The checkout uses WebKit's own upload sheet, which presents Camera and Photo Library ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["from your application's process"]},", so your app must declare both usage descriptions or those options will not work:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"xml","header":{"controls":{"copy":{}}},"source":"<key>NSCameraUsageDescription</key>\n<string>Camera access is used to capture documents during checkout verification.</string>\n<key>NSPhotoLibraryUsageDescription</key>\n<string>Photo Library access is used to upload documents during checkout verification.</string>\n","lang":"xml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use wording that describes your own app. Without these keys, iOS terminates the app when the user picks those options."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"quick-start","__idx":5},"children":["Quick Start"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"import GlomoPaySDK\nimport UIKit\n\nfinal class CheckoutCoordinator: GlomoPayListener {\n\n    private var handle: GlomoPayCheckoutHandle?\n\n    func start(from presenter: UIViewController, orderId: String) {\n        let config = GlomoPayConfig(\n            publicKey: \"live_your_public_key\",\n            orderId: orderId\n        )\n        handle = GlomoPaySDK.shared.startCheckout(\n            from: presenter,\n            config: config,\n            listener: self\n        )\n    }\n\n    func onPaymentSuccess(_ payload: GlomoPayPayload) {\n        // Verify payload.signature on your server before fulfilling the order\n    }\n\n    func onPaymentFailure(_ payload: GlomoPayPayload) {\n        // The backend confirmed the payment failed. No signature is carried here\n    }\n\n    func onUserJourneyCompleted(_ payload: GlomoPayUserJourneyPayload) {\n        // Required. A journey ended without a confirmed payment - today only a\n        // submitted bank transfer. No money has moved: reconcile server-side\n    }\n\n    func onSdkError(_ errors: [SdkError]) {\n        // Validation, device compliance, or an order fault the backend answered\n    }\n\n    func onConnectionError(_ error: ConnectionError) {\n        // Check error.shouldAutoClose before closing anything yourself\n    }\n\n    func onPaymentTerminate(_ source: TerminationSource) {\n        // The checkout ended without a payment result\n    }\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Retain the coordinator."]}," See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#listener-retention"},"children":["Listener retention"]}," - this is the single most common integration mistake on iOS."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"listener-retention","__idx":6},"children":["Listener retention"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The SDK holds your listener weakly."]}," It does not keep your object alive. Retain the listener for at least as long as the checkout runs."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A coordinator or handler that nothing else references is released mid-checkout, and the payment result then cannot be delivered. The SDK records that case in its own diagnostics rather than failing silently, but ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["the result is still gone"]}," - there is no callback and no second chance."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"// Wrong: nothing retains the coordinator, so the result is lost\nGlomoPaySDK.shared.startCheckout(\n    from: self,\n    config: config,\n    listener: CheckoutCoordinator()\n)\n\n// Right: the coordinator is held for the lifetime of the checkout\nself.coordinator = CheckoutCoordinator()\nself.handle = GlomoPaySDK.shared.startCheckout(\n    from: self,\n    config: config,\n    listener: self.coordinator\n)\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Callbacks are delivered on the main queue. They must not throw or trap: Swift has no catchable exception mechanism, so a force-unwrap of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nil"]}," or an out-of-range index inside a callback takes down the host process and the SDK cannot contain it."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"subscriptions-checkout","__idx":7},"children":["Subscriptions Checkout"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To process subscription payments, pass a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}," instead of an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orderId"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"let config = GlomoPayConfig(\n    publicKey: \"live_your_public_key\",\n    subscriptionId: \"sub_your_subscription_id\"\n)\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}," is provided:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}," must start with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sub_"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Do not pass both ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orderId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}," - the SDK will fire ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onSdkError"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"asynchronous-payment-journeys","__idx":8},"children":["Asynchronous Payment Journeys"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Not every checkout ends in a payment the backend can confirm. When the user submits bank transfer details, no money has moved yet and there is nothing for your server to verify - no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentId"]}," and no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["signature"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This ends the checkout through ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onUserJourneyCompleted"]}," with a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPayUserJourneyPayload"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"func onUserJourneyCompleted(_ payload: GlomoPayUserJourneyPayload) {\n    switch payload.journeyType {\n    case .bankTransfer:\n        // Mark the order awaiting reconciliation. Do not fulfil it\n        break\n    }\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["It ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["does not also reach ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentSuccess"]}]},". One journey produces one callback."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onUserJourneyCompleted"]}," is required and has no protocol-extension default, unlike ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentTerminate"]},". That is deliberate: the order decides server-side whether bank transfers are enabled, so a default body would let an integration compile and silently stop hearing about a journey it was told about before."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"features","__idx":9},"children":["Features"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Standard, LRS, and Subscriptions"]}," checkout flows"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Automatic order type detection"]}," from the order API, with explicit failure rather than a guess"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Native page-sheet presentation"]}," over your own view controller"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["WebView-based secure checkout"]}," - payment data never passes through merchant code"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Payment callbacks"]}," with signature verification"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Programmatic close"]}," - ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["startCheckout"]}," returns a handle that dismisses that session"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Session isolation"]}," - checkout cookies and storage never reach your app's own web views"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Device security compliance"]}," - jailbreak and debugger detection for live keys"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Self-contained error reporting"]}," - no Sentry package enters your dependency graph"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Overridable strings"]}," - every user-facing string can be replaced by your app"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["LRS education carousel"]}," above the secure bank flow"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Dark mode"]}," - ask the checkout page for a light or dark scheme, or let it follow your app's own appearance. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New in v1.1.0"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Origin policy"]}," - the main checkout web view stays on Glomo origins, and payment and page-lifecycle messages are accepted only from the main frame of a Glomo page. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New in v1.2.0"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Checkout progress events"]}," - where the customer reached in an LRS checkout, and why it closed. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New in v1.3.0"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"api-reference","__idx":10},"children":["API Reference"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"glomopaysdk","__idx":11},"children":["GlomoPaySDK"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"@MainActor\npublic func startCheckout(\n    from presenter: UIViewController,\n    config: GlomoPayConfig,\n    orderType: String = \"auto\",\n    listener: GlomoPayListener? = nil,\n    animated: Bool = true,\n    completion: (() -> Void)? = nil\n) -> GlomoPayCheckoutHandle\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Called on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPaySDK.shared"]},". Presents the checkout as a page sheet over ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["presenter"]}," and returns a handle."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["presenter"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UIViewController"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The view controller the checkout is presented from"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["config"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPayConfig"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Checkout configuration"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orderType"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"auto\""]}," (default, recommended), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"standard\""]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"lrs\""]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["listener"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPayListener?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Held ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["weakly"]}," - see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#listener-retention"},"children":["Listener retention"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["animated"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bool"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Whether the presentation is animated. Default ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["completion"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["(() -> Void)?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Called once the presentation finishes"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPaySDK.shared.validate(_:)"]}," returns ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[SdkError]"]}," for a config without starting a checkout."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"glomopaycheckouthandle","__idx":12},"children":["GlomoPayCheckoutHandle"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"@MainActor\npublic final class GlomoPayCheckoutHandle {\n    public func close()\n    public func setAppColorScheme(_ scheme: GlomoColorScheme)\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Retain the handle to dismiss that checkout programmatically - for example when the host app signs the user out. The listener then receives ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentTerminate(.programmatic)"]}," exactly once."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["close()"]}," called before the checkout has finished presenting is honoured once it appears. Called after the checkout has finished, it does nothing. The handle controls only the session it was returned for."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["setAppColorScheme(_:)"]}," changes the scheme of a checkout that is already presented, without reloading it. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New in v1.1.0"]}," - see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#dark-mode"},"children":["Dark mode"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"glomopayconfig","__idx":13},"children":["GlomoPayConfig"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"public struct GlomoPayConfig: Sendable, Equatable {\n    public init(\n        publicKey: String,\n        orderId: String? = nil,\n        subscriptionId: String? = nil,\n        autoCloseOnConnectionError: Bool = true,\n        appColorScheme: GlomoColorScheme = .auto\n    )\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Property"},"children":["Property"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default"},"children":["Default"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["publicKey"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your Glomo public key. Must start with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["live_"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["test_"]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mock_"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orderId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nil"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Order ID (starts with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["order_"]},"). Required unless using ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nil"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Subscription ID (starts with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sub_"]},"). Mutually exclusive with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orderId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoCloseOnConnectionError"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bool"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Whether a connectivity failure closes the checkout after reporting it"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["appColorScheme"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoColorScheme"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".auto"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The colour scheme to request from the checkout page. A request, not an instruction - see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#dark-mode"},"children":["Dark mode"]},". ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New in v1.1.0"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Exactly one of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orderId"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}," must be provided. If both or neither are set, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onSdkError"]}," fires."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoCloseOnConnectionError"]}," applies only to failures the SDK marks as closing. An advisory render timeout, a cancelled navigation and an unmapped WebKit failure all show the retry surface instead, whatever this is set to."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["appColorScheme"]}," is defaulted and goes last in the initialiser, so existing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPayConfig"]}," call sites compile unchanged."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["checkoutId"]}," returns the active identifier and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isSubscription"]}," reports whether a subscription ID was supplied."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"glomopaylistener","__idx":14},"children":["GlomoPayListener"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"public protocol GlomoPayListener: AnyObject {\n    func onPaymentSuccess(_ payload: GlomoPayPayload)\n    func onPaymentFailure(_ payload: GlomoPayPayload)\n    func onSdkError(_ errors: [SdkError])\n    func onConnectionError(_ error: ConnectionError)\n    func onUserJourneyCompleted(_ payload: GlomoPayUserJourneyPayload)\n    func onPaymentTerminate(_ source: TerminationSource)\n    func onCheckoutStageChanged(_ event: GlomoCheckoutStageChangedEvent)\n    func onCheckoutClosed(_ event: GlomoCheckoutClosedEvent)\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Callback"},"children":["Callback"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentSuccess"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A payment the backend confirms succeeded. Verify ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["signature"]}," server-side before fulfilling"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentFailure"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The backend confirms a payment failed. Carries no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["signature"]}," - a failure payload has never had one"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onSdkError"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The SDK or the order could not proceed - validation, forbidden device, or an order fault the backend answered"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onConnectionError"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Network, DNS, SSL, HTTP or WebView failure. Check ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isRecoverable"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["shouldAutoClose"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onUserJourneyCompleted"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A journey ended the checkout without a confirmed payment - today only ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".bankTransfer"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentTerminate"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The checkout ended without a payment result. Has a protocol-extension default"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onCheckoutStageChanged"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The customer reached a new checkout stage, or a new step within one. LRS only. Protocol-extension default. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New in v1.3.0"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onCheckoutClosed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The checkout closed, with the last stage it reached and why. At most once. Protocol-extension default. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New in v1.3.0"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["There is no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onEvent"]},"."]}," The diagnostic channel it provided was never part of the integration contract; everything with diagnostic value goes to the SDK's own telemetry, which is sanitised and does not depend on your app implementing anything."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"glomopaypayload","__idx":15},"children":["GlomoPayPayload"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Delivered by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentSuccess"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentFailure"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"public struct GlomoPayPayload: Equatable {\n    public let orderId: String\n    public let paymentId: String?\n    public let signature: String?\n    public let rawResponse: [String: AnyHashable]?\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Merchant responsibility:"]}," Always verify the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["signature"]}," on your server before fulfilling an order. Check it against each of your active secret keys, and accept it if any one matches. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/payin/checkout#steps-to-integrate-checkout"},"children":["Checkout overview"]}," for verification instructions."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Do not expect a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["signature"]}," on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentFailure"]},". That field exists so a host can verify a success. The page's response travels verbatim in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rawResponse"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"glomopayuserjourneypayload","__idx":16},"children":["GlomoPayUserJourneyPayload"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Delivered by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onUserJourneyCompleted"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"public struct GlomoPayUserJourneyPayload: Sendable, Equatable {\n    public let journeyType: GlomoPayUserJourneyType\n    public let orderId: String\n    public let senderAccountNumber: String?\n    public let transactionReference: String?\n    public let status: String?\n    public let rawResponse: [String: AnyHashable]?\n}\n\npublic enum GlomoPayUserJourneyType: String, Sendable, CaseIterable {\n    case bankTransfer\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Deliberately not a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPayPayload"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["signature"]}," are the fields a host verifies a payment with, and neither exists for a journey. Reconcile it server-side against the order and never fulfil from it."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Journey fields are read in both camelCase and snake_case. A payload with no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orderId"]}," is rejected rather than delivered."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The enum carries one member. Pay via Bank is not supported on the iOS SDK, so there is no journey member for it and the checkout page raises no event behind it - see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/payin/payment-methods/pay-via-bank"},"children":["Pay via Bank"]}," for that method's current availability."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"sdkerror","__idx":17},"children":["SdkError"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"public enum SdkErrorType: String, Sendable {\n    case validationError\n    case deviceForbidden\n    case networkError\n    case unknown\n}\n\npublic struct SdkError: Error, Sendable, Equatable {\n    public let type: SdkErrorType\n    public let message: String\n    public let field: String?\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"When"},"children":["When"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["validationError"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Invalid public key, order ID, or subscription ID format. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["field"]}," indicates which failed"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deviceForbidden"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Jailbreak or debugger detected on a device using a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["live_"]}," key"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["networkError"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The order could not be loaded before opening checkout"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["unknown"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unexpected error"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["An order fault the backend actually answered - a non-2xx status, or a response that cannot be parsed - is reported here. A timeout or transport failure reports through ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onConnectionError"]}," instead."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"connectionerror","__idx":18},"children":["ConnectionError"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"public enum ConnectionErrorType: String, Sendable {\n    case noInternet\n    case dnsFailure\n    case timeout\n    case sslError\n    case httpClientError\n    case httpServerError\n    case webResourceError\n    case unknown\n}\n\npublic struct ConnectionError: Error, Sendable, Equatable {\n    public let type: ConnectionErrorType\n    public let message: String\n    public let statusCode: Int?\n    public let failedURL: URL?\n    public let errorCode: Int?\n    public let shouldAutoClose: Bool\n    public var isRecoverable: Bool { get }\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Recoverable"},"children":["Recoverable"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["noInternet"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Device is offline"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["dnsFailure"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DNS resolution failed"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["timeout"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Request timed out"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sslError"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SSL/TLS handshake failed"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["httpClientError"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP 4xx response"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["httpServerError"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP 5xx response"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["webResourceError"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["WebView resource loading failed"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["unknown"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unexpected error"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["shouldAutoClose"]}," is decided from the mapped error type, not from the sign of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["errorCode"]},". A cancelled navigation is not reported at all: WebKit delivers those routinely for superseded loads and client-side redirects, and treating one as a connection failure ended live checkouts for a non-event."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"terminationsource","__idx":19},"children":["TerminationSource"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"public enum TerminationSource: String, Sendable {\n    case userDismiss\n    case programmatic\n    case connectionError\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Source"},"children":["Source"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"When"},"children":["When"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["userDismiss"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The user closed the checkout from the navigation bar, or swiped the sheet down"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["programmatic"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The host called ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPayCheckoutHandle.close()"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["connectionError"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A connection error ended the checkout"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["There is no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["backButton"]}," case. iOS has no native back control on the checkout; the navigation bar's Close button and interactive sheet dismissal both report ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["userDismiss"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"slow-checkout-warning","__idx":20},"children":["Slow checkout warning"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the checkout page has not become interactive 15 seconds after presentation, the SDK reports ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onConnectionError"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ConnectionErrorType.timeout"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["shouldAutoClose"]}," set to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]},", and shows a retry surface."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is advisory, not an ending: the page may be seconds away and the session stays alive. If your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onConnectionError"]}," dismisses the checkout for every error it receives, check ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["shouldAutoClose"]}," first."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"document-uploads","__idx":21},"children":["Document Uploads"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Bank flows that ask for documents open ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["WebKit's own upload sheet"]},", which offers Camera, Photo Library and Files on every supported iOS version. The SDK deliberately does not substitute its own document picker - doing so removed capture options the platform provides for free, on KYC fields where photographing a document is the common case."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Because WebKit presents Camera and Photo Library from your application's process, your app must declare ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NSCameraUsageDescription"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NSPhotoLibraryUsageDescription"]},". See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#required-infoplist-entries"},"children":["Required Info.plist entries"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The SDK does not downscale captured images. Typical iPhone captures stay under the bank's upload limit."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"dark-mode","__idx":22},"children":["Dark mode"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New in v1.1.0."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPayConfig.appColorScheme"]}," tells the Glomo checkout page which scheme to present. It defaults to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".auto"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"public enum GlomoColorScheme: Sendable {\n    case auto\n    case light\n    case dark\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"let config = GlomoPayConfig(\n    publicKey: \"test_public_key\",\n    orderId: \"order_example\",\n    appColorScheme: .auto // .auto | .light | .dark\n)\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["It requests a scheme, it does not force one."]}," The page decides, against your merchant dashboard settings. Setting ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".dark"]}," does not guarantee a dark checkout, and dark mode is enabled per account - until it is enabled for yours, checkout stays light whatever you pass. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/dark-mode"},"children":["Dark mode across the SDKs"]}," for what that gating means."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".auto"]}," resolves to here."]}," The checkout's own trait collection, so an app that sets ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["overrideUserInterfaceStyle"]}," gets what it set rather than what the device is on. What the automatic value derives from is a per-platform decision and differs across the Glomo SDKs; only ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".light"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".dark"]}," mean the same thing everywhere - see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/dark-mode#what-the-automatic-value-resolves-to"},"children":["cross-SDK table"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Changing it mid-checkout is supported"]},", through the handle:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"let handle = GlomoPaySDK.shared.startCheckout(from: self, config: config, listener: self)\n// later, without dismissing and re-presenting\nhandle.setAppColorScheme(.dark)\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The page is told through the bridge rather than by reloading it, so a payment in flight survives the change. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Do not dismiss and re-present the checkout to change the scheme."]}," A host appearance change reaches an open checkout on its own while the scheme is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".auto"]},"; nothing is needed from the host for that."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What the SDK paints follows your account setting, as of v1.2.0."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["appColorScheme"]}," is what the page is told, and that is unchanged - it still reaches the page in full and the page still decides. What the SDK itself draws before the page's first paint - the loading screen, the checkout web view and the LRS education carousel - now follows both the scheme you asked for ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["and"]}," the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["dark_mode_enabled"]}," flag on your account, which arrives with the order. Three consequences, all of them the intended end state:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Dark mode off for your account."]}," Everything the SDK paints is light, whatever you pass and whatever the device is on. Before v1.2.0 a host on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".dark"]},", or on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".auto"]}," with a dark device, showed a dark screen in front of a checkout that then rendered light."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Dark mode on for your account."]}," The loading screen is light until the order loads and then dark, where it used to be dark from the first frame. The gap is one order request, and it closes before the page paints."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Checkouts that never load an order stay light throughout"]}," - one opened with an explicit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orderType"]}," of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"standard\""]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"lrs\""]},", and any subscription checkout. Those paths do not fetch the order, so the account setting is not available to them."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Only a downgrade undoes any of this; the account setting cannot roll it back. The dark loading screen also uses the checkout page's own background colour rather than black, so there is no seam at the edges while the page settles."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WKWebView"]}," has no algorithmic darkening to switch off"]},", so there is no iOS counterpart to the Android setting. The iOS-specific concern is the opposite one: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WKWebView"]}," reports ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prefers-color-scheme"]}," from its trait collection, which inherits the host app. The checkout and carousel web views therefore have their ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["overrideUserInterfaceStyle"]}," pinned to the scheme the checkout resolved, so a page told ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["dark"]}," cannot still match ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prefers-color-scheme: light"]}," in its own CSS and render half of each."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"checkout-progress-events","__idx":23},"children":["Checkout progress events"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New in v1.3.0."]}," Two optional listener methods report how far a customer got through an LRS checkout and why the checkout closed. They are the native equivalent of the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["checkout.stage_changed"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["checkout.closed"]}," events on the web - see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/checkout-events"},"children":["Checkout events"]}," for the contract they relay: every stage, step, close reason and field, and what each one means."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["They are ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["enabled per merchant and off by default"]},". Until they are switched on for your business, the checkout behaves exactly as it does today and neither method fires. Talk to your Glomo contact to turn them on; the same switch adds ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["progress"]}," to the payment webhook, so you do not need to ask twice."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Both have default implementations in a protocol extension, so an existing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPayListener"]}," compiles and behaves unchanged."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"extension CheckoutHandler: GlomoPayListener {\n    // ... the required methods\n\n    func onCheckoutStageChanged(_ event: GlomoCheckoutStageChangedEvent) {\n        analytics.track(\"checkout_stage\", [\n            \"orderId\": event.resource.id,\n            \"journeyId\": event.journeyId,\n            \"stage\": event.stage,\n            \"step\": event.step ?? \"\",\n            \"provider\": event.provider ?? \"\",\n        ])\n    }\n\n    func onCheckoutClosed(_ event: GlomoCheckoutClosedEvent) {\n        guard event.reason != GlomoCheckoutCloseReasons.completed else { return }\n        analytics.track(\"checkout_abandoned\", [\n            \"lastStage\": event.lastStage ?? \"\",\n            \"reason\": event.reason,\n        ])\n    }\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Both event types are ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Sendable"]},", and callbacks arrive on the main queue like every other listener method."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"glomocheckoutstagechangedevent","__idx":24},"children":["GlomoCheckoutStageChangedEvent"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Fires each time the customer reaches a new stage, or a new step within one. Stages arrive in order and each stage and step pair fires at most once per checkout, so appending them builds a drop-off funnel without deduplication."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Property"},"children":["Property"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["version"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Int"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Payload version. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]}," today - see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/checkout-events#versioning-and-compatibility"},"children":["Versioning"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["resource"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutResource"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["What the checkout was opened for. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["order"]}," on LRS, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," is the order ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["journeyId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Identifies one checkout open. Every event from the same open carries the same value"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["at"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ISO 8601 UTC timestamp from the customer's device clock"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["flow"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["What the checkout is for. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment"]}," today"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stage"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The stage reached - see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/checkout-events#payment-stages"},"children":["Payment stages"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["method"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The payment method. Known: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lrs"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The payment attempt. Present from the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["attempt_created"]}," stage onward"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["step"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The screen within the stage - see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/checkout-events#steps"},"children":["Steps"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["provider"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The bank the customer chose. Present from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["method_selected"]}," onward"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["journeyType"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["redirect"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["native"]},". Present from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["method_selected"]}," onward"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["errorCode"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Only on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stage"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["failed"]},", and not always present there"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["segment"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutSegment?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Reserved. Not sent today"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rawPayload"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[String: AnyHashable]?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The payload as received, including fields added after this SDK version was built"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"glomocheckoutclosedevent","__idx":25},"children":["GlomoCheckoutClosedEvent"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Delivered at most once per checkout. No progress events follow it - no stage changes, and no second close."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Property"},"children":["Property"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["version"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Int"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Payload version"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["resource"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutResource"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["As on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutStageChangedEvent"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["journeyId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Same value as the stage changes from this checkout open"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["at"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ISO 8601 UTC timestamp"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["flow"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["As on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutStageChangedEvent"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["reason"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Why it ended - see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/checkout-events#close-reasons"},"children":["Close reasons"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["method"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["As on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutStageChangedEvent"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Present when a payment attempt was created before the checkout closed"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lastStage"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The last stage the page reported. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nil"]}," only on a close the page itself sent before any stage"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lastStep"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The step reported with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lastStage"]},", where there was one"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rawPayload"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[String: AnyHashable]?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The payload as received"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"known-values","__idx":26},"children":["Known values"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutStages"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutCloseReasons"]}," name the values known at the time this SDK version was built:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"GlomoCheckoutStages.opened              // \"opened\"\nGlomoCheckoutStages.methodSelected      // \"method_selected\"\nGlomoCheckoutStages.detailsSubmitted\nGlomoCheckoutStages.attemptCreated\nGlomoCheckoutStages.customerAuth\nGlomoCheckoutStages.providerHandoff\nGlomoCheckoutStages.awaitingConfirmation\nGlomoCheckoutStages.confirmed\nGlomoCheckoutStages.failed\n\nGlomoCheckoutCloseReasons.userDismissed        // \"user_dismissed\"\nGlomoCheckoutCloseReasons.userCancelled\nGlomoCheckoutCloseReasons.completed\nGlomoCheckoutCloseReasons.error\nGlomoCheckoutCloseReasons.confirmationTimeout\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["They are string constants, not enums, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stage"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["step"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["provider"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["method"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["reason"]}," are open strings. New values can appear within ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["version"]}," 1, and the SDK forwards them rather than filtering them out. Compare against the constants where you recognise a value; never fail on one you do not."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"which-closes-the-sdk-reports-itself","__idx":27},"children":["Which closes the SDK reports itself"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Several ways out of a checkout never reach the page, so the SDK writes the close event for them: the customer swiping the sheet away, tapping Close in the navigation bar, and leaving the SDK's own connection-error screen. The reason it writes is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["completed"]}," after a successful payment or a submitted bank transfer, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," after a failed payment or from the error screen, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["user_dismissed"]}," otherwise."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A close is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["not guaranteed"]},". A checkout closed with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPayCheckoutHandle.close()"]}," before it reached a payment result reports none. Close it after a payment result and the close is still delivered, with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lastStage"]}," set to the last stage the page reported before you closed."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["A checkout left before the SDK saw a stage it recognises reports no close at all."]}," A customer who backs out on the loading screen, or before the first stage arrives, produces neither a stage change nor a close. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onCheckoutClosed"]}," is therefore not an end-of-checkout hook: use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentTerminate"]}," for that, and treat a close as \"the customer got at least this far\"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["On a declined payment, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lastStage"]}," is the stage before ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["failed"]},": the page reports the failure ahead of that stage, and the checkout closes on the failure."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"what-it-is-not","__idx":28},"children":["What it is not"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onCheckoutClosed"]}," is not a payment outcome. After a dismissal the payment can still complete on the server, so read the result from the payment status API or your webhook, never from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["reason"]},". ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["completed"]}," means the customer finished what the checkout asked of them, not that the payment settled."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["It does not replace ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentTerminate"]},", which is unchanged. On the close path ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentTerminate"]}," comes first, though a late one can still land while the sheet dismisses."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"only-v1-payloads","__idx":29},"children":["Only v1 payloads"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The SDK delivers ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["version"]}," 1 payloads only. An empty or differently versioned payload reports nothing, which is also what you see while the events are switched off for your account."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"checkout-behavior","__idx":30},"children":["Checkout Behavior"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The checkout is presented as a page sheet over the view controller you pass in"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Order type detection"]},": the flow is resolved from a successful order fetch, or the checkout does not open. A timeout or transport failure reports through ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onConnectionError"]},", a non-2xx status or an unparseable response through ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onSdkError"]},", and the session ends. No order type is guessed - guessing would route LRS traffic to the wrong checkout host"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Bank flow overlay"]},": Back always closes the overlay and returns the user to the checkout, rather than walking the bank page's own history, which redirect chains make unexitable. Edge-swipe history gestures are disabled on both web views"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The bank overlay allows ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["http"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["about"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blob"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data"]}," navigations and blocks everything else, so an unknown scheme cannot fail silently and strand the user on a page that appears to have done nothing"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["LRS education carousel"]},": for LRS orders an education strip is shown above the bank page when the checkout page reports content for it, and collapses to a fixed back bar when there is nothing to show"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"origin-policy","__idx":31},"children":["Origin Policy"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New in v1.2.0."]}," The SDK now decides for itself which pages belong to Glomo, and refuses privileged bridge messages and off-origin navigation from everything else. There is nothing to integrate - no callback, no configuration and no new dependency - and the callbacks your app receives from a normal payment are unchanged."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"payment-and-page-lifecycle-messages-are-accepted-only-from-glomo-checkout-pages","__idx":32},"children":["Payment and page-lifecycle messages are accepted only from Glomo checkout pages"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment.*"]}," event or a report that the page's own dependencies failed to load is honoured only when it comes from the main frame of a Glomo page. A bank or 3-D Secure page in the redirect overlay can no longer report a payment result or put a live checkout on the error screen, and neither can a third-party frame embedded in a Glomo page - WebKit's own frame attribution is what the SDK checks, not the web view's URL."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Bank-driven navigation is unaffected. A bank page calling ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["window.close()"]}," to dismiss the overlay after a challenge works exactly as before; gating that would strand the user on a finished page."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"the-main-checkout-web-view-is-restricted-to-glomo-origins","__idx":33},"children":["The main checkout web view is restricted to Glomo origins"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["It only ever loaded Glomo pages; that is now enforced rather than assumed. A top-level navigation anywhere else is cancelled before it loads. Subframe loads are untouched - card entry, 3-D Secure and server-to-server frames are not on Glomo hosts and must keep loading - and the bank redirect overlay is deliberately not restricted by host, since the bank decides where it goes next."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"what-a-refused-message-or-navigation-does","__idx":34},"children":["What a refused message or navigation does"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Nothing reaches your app. Both are recorded in the SDK's own diagnostics, by origin rather than by URL, and the checkout carries on. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onSdkError"]}," is deliberately not used for either: before the page's first event, raising there is the terminal error screen, which would hand any bank page a way to end a checkout it can no longer speak for."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"which-origins-are-trusted","__idx":35},"children":["Which origins are trusted"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https"]}," on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["glomopay.com"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["glomo.one"]},", including subdomains, on the default port. A suffix rule rather than a fixed host list, so a shipped SDK keeps working if a checkout host moves or redirects between the two."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The base URLs this SDK navigates to, from its own resolved configuration. That is what covers the LRS education carousel and a self-hosted checkout, with no extra setup."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Nothing about signature verification changes. Confirm every payment on your server as before - the origin check narrows what can reach your callbacks, it does not replace verification."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"session-isolation","__idx":36},"children":["Session Isolation"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The checkout's web views share one non-persistent website data store. Checkout cookies, local storage and cache never reach your application's own ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WKWebView"]}," instances, and a second checkout never starts against what the first one left behind."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The SDK never clears app-wide website data - doing so would destroy a 3DS session mid-redirect."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"device-security-compliance","__idx":37},"children":["Device Security Compliance"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Scenario"},"children":["Scenario"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Behavior"},"children":["Behavior"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["live_"]}," key + jailbroken/debugged device"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onSdkError"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deviceForbidden"]},". Checkout does not open"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["live_"]}," key + clean device"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Checkout proceeds normally"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["test_"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mock_"]}," key"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Compliance checks skipped entirely"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"mock-mode","__idx":38},"children":["Mock Mode"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Key prefix"},"children":["Key prefix"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Mode"},"children":["Mode"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["live_"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Production"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Real payments. Device compliance enforced"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["test_"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Test"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Mock checkout. No real transactions. Compliance skipped"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mock_"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Mock"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Same as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["test_"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"input-validation","__idx":39},"children":["Input Validation"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Rule"},"children":["Rule"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["publicKey"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Length > 5. Must start with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["live_"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["test_"]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mock_"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orderId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Length > 6. Must start with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["order_"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Length > 4. Must start with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sub_"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Exactly one of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orderId"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}," must be provided"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Validation errors fire ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onSdkError"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["validationError"]}," and the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["field"]}," that failed"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPaySDK.shared.validate(_:)"]}," runs the same checks without starting a checkout"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"localization","__idx":40},"children":["Localization"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Every user-facing string the SDK draws is looked up from a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPayLocalizable"]}," table. Your app can override any key by declaring it in its own ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPayLocalizable.strings"]},", because the main bundle is searched before the SDK's."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"dependency-notes","__idx":41},"children":["Dependency Notes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The SDK has no third-party package dependencies."]}," v1.0.0 removed the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sentry-cocoa"]}," dependency: Swift Package Manager resolves one version of a package for the whole app, so a merchant already on a different Sentry version could not install the SDK at all. The SDK's own error reporting now runs over ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["URLSession"]},". You can use any Sentry version alongside it, or none."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["No dSYM upload is required for the SDK. Its error reports carry no stack trace, and Glomo never receives your dSYMs."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"troubleshooting","__idx":42},"children":["Troubleshooting"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"no-callbacks-arrive-at-all","__idx":43},"children":["No callbacks arrive at all"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The listener was released. The SDK holds it weakly - see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#listener-retention"},"children":["Listener retention"]},". Retain the coordinator or handler for at least as long as the checkout."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"the-app-crashes-when-the-user-taps-camera-or-photo-library","__idx":44},"children":["The app crashes when the user taps Camera or Photo Library"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NSCameraUsageDescription"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NSPhotoLibraryUsageDescription"]}," is missing from your app's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Info.plist"]},". See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#required-infoplist-entries"},"children":["Required Info.plist entries"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"package-resolution-fails-on-sentry-or-on-a-version-conflict","__idx":45},"children":["Package resolution fails on Sentry, or on a version conflict"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["v1.0.0 has no third-party dependencies. If resolution still fails, you are on an older build - move to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1.0.0"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"onsdkerror-fires-immediately","__idx":46},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onSdkError"]}," fires immediately"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Check that ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["publicKey"]}," format is valid and that exactly one of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orderId"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}," is provided. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoPaySDK.shared.validate(_:)"]}," reports the same errors without opening a checkout."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"deviceforbidden-in-development","__idx":47},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deviceForbidden"]}," in development"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["test_"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mock_"]}," key prefix during development."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"onconnectionerror-with-timeout-but-the-checkout-is-still-open","__idx":48},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onConnectionError"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["timeout"]}," but the checkout is still open"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is the 15-second ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#slow-checkout-warning"},"children":["slow checkout warning"]},", reported with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["shouldAutoClose"]}," false. The session is still alive."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"bank-transfers-do-not-reach-onpaymentsuccess","__idx":49},"children":["Bank transfers do not reach ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPaymentSuccess"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Expected. They arrive at ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onUserJourneyCompleted"]},", because they carry no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentId"]}," and no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["signature"]}," for your backend to verify. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#asynchronous-payment-journeys"},"children":["Asynchronous Payment Journeys"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"the-build-fails-on-a-missing-onuserjourneycompleted","__idx":50},"children":["The build fails on a missing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onUserJourneyCompleted"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["It is required and has no default implementation. If you do not take bank transfers, an empty body is a complete integration - it simply never fires."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"security","__idx":51},"children":["Security"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Payment data is handled within a secure, isolated WebView - it never passes through your application code"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The JavaScript bridge is limited to payment lifecycle events; no PAN, CVV, or sensitive payment data crosses it"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Jailbreak and debugger detection blocks checkout on compromised devices (live keys only)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Every URL the page asks to open is validated before it can become a navigation. A parse is not a check, so ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["javascript:"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data:"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["file:"]}," URLs are rejected rather than followed"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["As of v1.2.0 the main checkout web view stays on Glomo origins, and payment and page-lifecycle messages are accepted only from the main frame of a Glomo page - see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#origin-policy"},"children":["Origin Policy"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The bank flow overlay allows only ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["http"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["about"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blob"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data"]}," navigations"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Checkout web views use a non-persistent data store isolated from your app's own web views"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The SDK installs no crash or exception handlers, swizzles nothing, and never touches a Sentry client your app owns"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The bundled privacy manifest declares the SDK's data use; tracking is disabled and no App Tracking Transparency prompt is required"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To report a security vulnerability, email security@glomopay.com. Do not open a public GitHub issue for security reports."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"related","__idx":52},"children":["Related"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/ios-sdk/changelog"},"children":["Changelog"]}," - all release notes"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/dark-mode"},"children":["Dark mode across the SDKs"]}," - what the automatic value resolves to on each Glomo SDK, and the per-account gating"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/checkout-events"},"children":["Checkout events"]}," - the stage, step and close-reason contract the progress callbacks relay"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/android-sdk"},"children":["Android SDK"]}," - Glomo SDK for native Android apps"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/react-native-sdk"},"children":["React Native SDK"]}," - Glomo SDK for React Native apps"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/flutter-sdk"},"children":["Flutter SDK"]}," - Glomo SDK for Flutter apps"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/unified-sdk"},"children":["Unified SDK (Web)"]}," - Glomo SDK for web apps"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/payin/checkout"},"children":["Checkout overview"]}," - server-side checkout integration and signature verification"]}]}]},"headings":[{"value":"Glomo iOS SDK v1","id":"glomo-ios-sdk-v1","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"System Requirements","id":"system-requirements","depth":2},{"value":"Installation","id":"installation","depth":2},{"value":"Required Info.plist entries","id":"required-infoplist-entries","depth":2},{"value":"Quick Start","id":"quick-start","depth":2},{"value":"Listener retention","id":"listener-retention","depth":2},{"value":"Subscriptions Checkout","id":"subscriptions-checkout","depth":2},{"value":"Asynchronous Payment Journeys","id":"asynchronous-payment-journeys","depth":2},{"value":"Features","id":"features","depth":2},{"value":"API Reference","id":"api-reference","depth":2},{"value":"GlomoPaySDK","id":"glomopaysdk","depth":3},{"value":"GlomoPayCheckoutHandle","id":"glomopaycheckouthandle","depth":3},{"value":"GlomoPayConfig","id":"glomopayconfig","depth":3},{"value":"GlomoPayListener","id":"glomopaylistener","depth":3},{"value":"GlomoPayPayload","id":"glomopaypayload","depth":3},{"value":"GlomoPayUserJourneyPayload","id":"glomopayuserjourneypayload","depth":3},{"value":"SdkError","id":"sdkerror","depth":3},{"value":"ConnectionError","id":"connectionerror","depth":3},{"value":"TerminationSource","id":"terminationsource","depth":3},{"value":"Slow checkout warning","id":"slow-checkout-warning","depth":2},{"value":"Document Uploads","id":"document-uploads","depth":2},{"value":"Dark mode","id":"dark-mode","depth":2},{"value":"Checkout progress events","id":"checkout-progress-events","depth":2},{"value":"GlomoCheckoutStageChangedEvent","id":"glomocheckoutstagechangedevent","depth":3},{"value":"GlomoCheckoutClosedEvent","id":"glomocheckoutclosedevent","depth":3},{"value":"Known values","id":"known-values","depth":3},{"value":"Which closes the SDK reports itself","id":"which-closes-the-sdk-reports-itself","depth":3},{"value":"What it is not","id":"what-it-is-not","depth":3},{"value":"Only v1 payloads","id":"only-v1-payloads","depth":3},{"value":"Checkout Behavior","id":"checkout-behavior","depth":2},{"value":"Origin Policy","id":"origin-policy","depth":2},{"value":"Payment and page-lifecycle messages are accepted only from Glomo checkout pages","id":"payment-and-page-lifecycle-messages-are-accepted-only-from-glomo-checkout-pages","depth":3},{"value":"The main checkout web view is restricted to Glomo origins","id":"the-main-checkout-web-view-is-restricted-to-glomo-origins","depth":3},{"value":"What a refused message or navigation does","id":"what-a-refused-message-or-navigation-does","depth":3},{"value":"Which origins are trusted","id":"which-origins-are-trusted","depth":3},{"value":"Session Isolation","id":"session-isolation","depth":2},{"value":"Device Security Compliance","id":"device-security-compliance","depth":2},{"value":"Mock Mode","id":"mock-mode","depth":2},{"value":"Input Validation","id":"input-validation","depth":2},{"value":"Localization","id":"localization","depth":2},{"value":"Dependency Notes","id":"dependency-notes","depth":2},{"value":"Troubleshooting","id":"troubleshooting","depth":2},{"value":"No callbacks arrive at all","id":"no-callbacks-arrive-at-all","depth":3},{"value":"The app crashes when the user taps Camera or Photo Library","id":"the-app-crashes-when-the-user-taps-camera-or-photo-library","depth":3},{"value":"Package resolution fails on Sentry, or on a version conflict","id":"package-resolution-fails-on-sentry-or-on-a-version-conflict","depth":3},{"value":"onSdkError fires immediately","id":"onsdkerror-fires-immediately","depth":3},{"value":"deviceForbidden in development","id":"deviceforbidden-in-development","depth":3},{"value":"onConnectionError with timeout but the checkout is still open","id":"onconnectionerror-with-timeout-but-the-checkout-is-still-open","depth":3},{"value":"Bank transfers do not reach onPaymentSuccess","id":"bank-transfers-do-not-reach-onpaymentsuccess","depth":3},{"value":"The build fails on a missing onUserJourneyCompleted","id":"the-build-fails-on-a-missing-onuserjourneycompleted","depth":3},{"value":"Security","id":"security","depth":2},{"value":"Related","id":"related","depth":2}],"frontmatter":{"title":"iOS SDK v1","seo":{"title":"Glomo iOS SDK v1"}},"lastModified":"2026-11-27T11:25:07.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/platform/sdk/ios-sdk/v1","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}