import { AppleWallet } from '@awesome-cordova-plugins/apple-wallet/ngx';
constructor(private appleWallet: AppleWallet) { }
...
this.appleWallet.isAvailable()
.then((res: boolean) => {
})
.catch((err) => {
});
...
this.appleWallet.checkCardEligibility(primaryAccountIdentifier: string)
.then((res: boolean) => {
})
.catch((err) => {
});
...
this.appleWallet.checkCardEligibilityBySuffix(cardSuffix: string)
.then((res: boolean) => {
})
.catch((err) => {
});
...
this.appleWallet.checkPairedDevices()
.then((res: WatchExistData) => {
})
.catch((err) => {
});
...
this.appleWallet.checkPairedDevicesBySuffix(cardSuffix: string)
.then((res: PairedDevicesFlags) => {
})
.catch((err) => {
});
...
this.appleWallet.startAddPaymentPass(data: cardData)
.then((res: SignatureCertificatesData) => {
})
.catch((err) => {
});
...
this.appleWallet.completeAddPaymentPass(data: encryptedCardData)
.then((res: string) => {
})
.catch((err) => {
});