0.0.1 • Published 11 months ago

checkout-sheet-android v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

checkout-sheet-android

shopify checkout sheet for android capacitor plugin

Install

npm install checkout-sheet-android
npx cap sync

API

presentCheckout(...)

presentCheckout(options: { checkoutUrl: string; }) => Promise<void>
ParamType
options{ checkoutUrl: string; }

preloadCheckout(...)

preloadCheckout(options: { checkoutUrl: string; }) => Promise<void>
ParamType
options{ checkoutUrl: string; }

configure(...)

configure(options: { config: CheckoutConfiguration; }) => Promise<void>
ParamType
options{ config: CheckoutConfiguration; }

addListener('checkoutCompleted' | 'checkoutCanceled' | 'checkoutFailed' | 'webPixelEvent' | 'checkoutLinkClicked', ...)

addListener(eventName: 'checkoutCompleted' | 'checkoutCanceled' | 'checkoutFailed' | 'webPixelEvent' | 'checkoutLinkClicked', listenerFunc: (event: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'checkoutCompleted' | 'checkoutCanceled' | 'checkoutFailed' | 'webPixelEvent' | 'checkoutLinkClicked'
listenerFunc(event: any) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

CheckoutConfiguration

PropType
colorSchemeColorScheme
preloadingPreloading
errorRecoveryErrorRecovery

Preloading

PropType
enabledboolean

ErrorRecovery

PropType
shouldRecoverFromError((error: CheckoutException) => boolean)

CheckoutException

PropType
codestring
messagestring
isRecoverableboolean

PluginListenerHandle

PropType
remove() => Promise<void>

Type Aliases

ColorScheme

'Automatic' | 'Light' | 'Dark' | 'Web'

0.0.1

11 months ago