An open API service indexing awesome lists of open source software.

https://github.com/nitnelavah/capacitor-pass-to-wallet

Allow to add .pkpass files to Apple wallet
https://github.com/nitnelavah/capacitor-pass-to-wallet

apple-wallet capacitor capacitor-plugin ionic ionic-framework passbook pkpass

Last synced: about 2 months ago
JSON representation

Allow to add .pkpass files to Apple wallet

Awesome Lists containing this project

README

        

# capacitor-pass-to-wallet

Allow to add .pkpass file to Apple Wallet

Buy me a coffee if you think this plugin was very useful for your project
https://paypal.me/nitnelavah?country.x=MX&locale.x=es_XC

## Example
https://youtu.be/FUt2J385yCQ
https://github.com/NitnelavAH/IonicAdd2Wallet

## Compatibility

| Capacitor Version | Plugin Version |
| ------------- | ------------- |
| 4.x | 1.x |
| 5.x | 2.x |
| 6.x | 3.x |
| 7.x | 4.x |

## Install

```bash
npm install capacitor-pass-to-wallet
npx cap sync
```

## API

* [`addToWallet(...)`](#addtowallet)
* [`addMultipleToWallet(...)`](#addmultipletowallet)

### addToWallet(...)

```typescript
addToWallet(options: { base64: string; }) => Promise<{ message: string; }>
```

| Param | Type |
| ------------- | -------------------------------- |
| **`options`** | { base64: string; } |

**Returns:** Promise<{ message: string; }>

--------------------

### addMultipleToWallet(...)

```typescript
addMultipleToWallet(options: { base64: string[]; }) => Promise<{ message: string; }>
```

| Param | Type |
| ------------- | ---------------------------------- |
| **`options`** | { base64: string[]; } |

**Returns:** Promise<{ message: string; }>

--------------------