Apple Wallet
A Cordova plugin that enables users from Add Payment Cards to their Apple Wallet.
Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.
Installation
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
Supported Platforms
- iOS
Usage
import { AppleWallet } from '@ionic-native/apple-wallet/ngx';
constructor(private appleWallet: AppleWallet) { }
...
this.appleWallet.available()
.then((res) => {
// res is a boolean value, either true or false
console.log("Is Apple Wallet available? ", res);
})
.catch((message) => {
console.error("ERROR AVAILBLE>> ", message);
});
...
let data: cardData = {
cardholderName: 'Test User',
primaryAccountNumberSuffix: '1234',
localizedDescription: 'Description of payment card',
paymentNetwork: 'VISA'
}
this.appleWallet.startAddPaymentPass(data: cardData)
.then((res) => {
console.log("startAddPaymentPass success response ", res);
})
.catch((err) => {
console.error("startAddPaymentPass ERROR response", err);
});
...
let data: encryptedCardData = {
activationData: 'encoded Base64 activationData from your server',
encryptedPassData: 'encoded Base64 encryptedPassData from your server',
wrappedKey: 'encoded Base64 wrappedKey from your server',
}
this.appleWallet.encryptedCardData(data: encryptedCardData)
.then((res) => {
console.log("completeAddCardToAppleWallet success response ", res);
})
.catch((err) => {
console.error("completeAddCardToAppleWallet ERROR response", err);
});