0.0.2 • Published 4 months ago

@matiasfic/push-provisioning-capacitor-plugin v0.0.2

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

@matiasfic/push-provisioning-capacitor-plugin

Push provisioning Capacitor plugin for both Google Pay and Apple Pay support

Install

npm install @matiasfic/push-provisioning-capacitor-plugin
npx cap sync

API

isAvailable()

isAvailable() => Promise<{ available: boolean; }>

Returns: Promise<{ available: boolean; }>


isPaired(...)

isPaired(options: { cardLastFour: string; }) => Promise<{ paired: boolean; }>
ParamType
options{ cardLastFour: string; }

Returns: Promise<{ paired: boolean; }>


getCardUrl(...)

getCardUrl(options: { cardLastFour: string; }) => Promise<{ url: string | null; }>
ParamType
options{ cardLastFour: string; }

Returns: Promise<{ url: string | null; }>


startEnroll(...)

startEnroll(options: { cardHolder: string; cardLastFour: string; }) => Promise<{ certificates: string[]; nonce: string; nonceSignature: string; }>
ParamType
options{ cardHolder: string; cardLastFour: string; }

Returns: Promise<{ certificates: string[]; nonce: string; nonceSignature: string; }>


completeEnroll(...)

completeEnroll(options: { activationData: string; encryptedPassData: string; ephemeralPublicKey: string; }) => Promise<void>
ParamType
options{ activationData: string; encryptedPassData: string; ephemeralPublicKey: string; }

0.0.2

4 months ago

0.0.1

8 months ago