0.0.10 • Published 3 months ago

square-reader-capacitor-plugin v0.0.10

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

square-reader-capacitor-plugin

Capacitor.js plugin for using the Square Card Reader SDK

Install

npm install square-capacitor-plugin
npx cap sync

In your iOS project, add the SquareReaderSDK from these docs: https://developer.squareup.com/docs/reader-sdk/build-on-ios

Make sure to add the initialization line to the application delegate: https://developer.squareup.com/docs/reader-sdk/build-on-ios#step-6-add-code-to-initialize-the-reader-sdk

API

pluginTest()

pluginTest() => Promise<{ value: string; }>

Returns: Promise<{ value: string; }>


isAuthorized()

isAuthorized() => Promise<{ authorized: boolean; }>

Returns: Promise<{ authorized: boolean; }>


authorizeReaderSdk(...)

authorizeReaderSdk(options: { auth_code: string; }) => Promise<{ success: boolean; }>
ParamType
options{ auth_code: string; }

Returns: Promise<{ success: boolean; }>


startCheckout(...)

startCheckout(options: { amount: number; }) => Promise<{ success: boolean; }>
ParamType
options{ amount: number; }

Returns: Promise<{ success: boolean; }>


0.0.10

3 months ago

0.0.9

3 months ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago