{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-cashier/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"TypeScript","siteUrl":"https://docs.omno.com"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"typescript","__idx":0},"children":["TypeScript"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The SDK is written in TypeScript and ships full type definitions (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["dist/index.d.ts"]},")."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"import CashierSDK, {\n  DeviceType,\n  PaymentAction,\n  CashierEmitEvent,\n  type CashierProperties,\n  type PaymentEmitEventData,\n} from \"@omno-payment/checkout-js\";\n\nconst config: CashierProperties = {\n  baseUrl: \"https://checkout.omno.com\",\n  device: DeviceType.AUTO,\n};\n\nconst cashier = new CashierSDK(config);\n\ncashier.on(CashierEmitEvent.PAYMENT_SUCCESS, (data: PaymentEmitEventData) => {\n  console.log(\"Payment success\", data);\n});\n","lang":"typescript"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"exported-members","__idx":1},"children":["Exported members"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Default export:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CashierSDK"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enums:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DeviceType"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DESKTOP"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MOBILE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUTO"]},"), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PaymentAction"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DEPOSIT"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WITHDRAW"]},"), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CashierEmitEvent"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Types:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CashierProperties"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CashierStyles"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ModalStyles"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MobileStyles"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PaymentEmitEventData"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["KYCRequiredFieldErrorsData"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["KYCRequiredLevelErrorsData"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CashierEventMap"]},", and the Hosted Payment Fields types (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HpfStyles"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HpfFieldConfig"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HpfFieldName"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mountFieldsParameters"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["openCashierParameters"]},")."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"build-it-","__idx":2},"children":["Build it →"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/cashier/sdk/configuration"},"children":["Configuration"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/cashier/sdk/events"},"children":["Events"]}]}]}]},"headings":[{"value":"TypeScript","id":"typescript","depth":1},{"value":"Exported members","id":"exported-members","depth":2},{"value":"Build it →","id":"build-it-","depth":2}],"frontmatter":{"title":"TypeScript","description":"The Omno Web SDK ships full TypeScript types — the default export, enums, and the exported interfaces you'll use.","seo":{"title":"TypeScript"}},"lastModified":"2026-11-06T11:46:00.425Z","pagePropGetterError":{"message":"","name":""}},"slug":"/cashier/sdk/typescript","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}