Allows Capacitor Vue Apps to add in app purchases for iOS
npm install @alexanderwodarz/capacitor-ios-inapppurchase
npx cap sync
- After installation open Xcode
- Click on Project Navigator > App
- Create a new "StoreKit Configuration File" file with name "Product"
- Create a new "Property List" file with name "PropertyList"
- Make sure that both files are directly in "App" located and not in any other directory
- Click in Project Navigator on Product and configure your products
- Click on PropertyList and map your Reference Name with your id
- Press CMD + Shift + , to open "scheme edit"
- Select left Run and Options
- Select "Product.storekit" in "StoreKit Configuration"
Currently just tested with "Non-Consumable In-App Purchase"
list(options: { list: [registerProduct]; }) => Promise<{ value: boolean; }>
Param | Type |
---|---|
options |
{ list: [registerProduct]; } |
Returns: Promise<{ value: boolean; }>
getStoreProducts() => Promise<any>
Returns: Promise<any>
getPurchasedItems() => Promise<any>
Returns: Promise<any>
getProduct(options: { id: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ id: string; } |
Returns: Promise<{ value: string; }>
purchase(options: { id: string; }) => Promise<{ value: boolean; }>
Param | Type |
---|---|
options |
{ id: string; } |
Returns: Promise<{ value: boolean; }>
Prop | Type |
---|---|
reference |
string |
id |
string |