@matiasfic/push-provisioning-capacitor-plugin
v6.0.0
Published
Push provisioning Capacitor plugin for both Google Pay and Apple Pay support
Downloads
109
Readme
@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; }>
| Param | Type |
| ------------- | -------------------------------------- |
| options
| { cardLastFour: string; } |
Returns: Promise<{ paired: boolean; }>
getCardUrl(...)
getCardUrl(options: { cardLastFour: string; }) => Promise<{ url: string | null; }>
| Param | Type |
| ------------- | -------------------------------------- |
| options
| { cardLastFour: string; } |
Returns: Promise<{ url: string | null; }>
startEnroll(...)
startEnroll(options: { cardHolder: string; cardLastFour: string; }) => Promise<{ certificates: string[]; nonce: string; nonceSignature: string; }>
| Param | Type |
| ------------- | ---------------------------------------------------------- |
| options
| { cardHolder: string; cardLastFour: string; } |
Returns: Promise<{ certificates: string[]; nonce: string; nonceSignature: string; }>
completeEnroll(...)
completeEnroll(options: { activationData: string; encryptedPassData: string; ephemeralPublicKey: string; }) => Promise<void>
| Param | Type |
| ------------- | ----------------------------------------------------------------------------------------------- |
| options
| { activationData: string; encryptedPassData: string; ephemeralPublicKey: string; } |