Push provisioning Capacitor plugin for both Google Pay and Apple Pay support
npm install @matiasfic/push-provisioning-capacitor-plugin
npx cap sync
isAvailable() => Promise<{ available: boolean; }>
Returns: Promise<{ available: boolean; }>
isPaired(options: { cardLastFour: string; }) => Promise<{ paired: boolean; }>
Param | Type |
---|---|
options |
{ cardLastFour: string; } |
Returns: Promise<{ paired: boolean; }>
getCardUrl(options: { cardLastFour: string; }) => Promise<{ url: string | null; }>
Param | Type |
---|---|
options |
{ cardLastFour: string; } |
Returns: Promise<{ url: string | null; }>
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(options: { activationData: string; encryptedPassData: string; ephemeralPublicKey: string; }) => Promise<void>
Param | Type |
---|---|
options |
{ activationData: string; encryptedPassData: string; ephemeralPublicKey: string; } |