0.0.7 • Published 10 months ago

@alexanderwodarz/capacitor-ios-inapppurchase v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@alexanderwodarz/capacitor-ios-inapppurchase

Allows Capacitor Vue Apps to add in app purchases for iOS

Install

npm install @alexanderwodarz/capacitor-ios-inapppurchase
npx cap sync

Preparations

  1. After installation open Xcode
  2. Click on Project Navigator > App
  3. Create a new "StoreKit Configuration File" file with name "Product"
  4. Create a new "Property List" file with name "PropertyList"
  5. Make sure that both files are directly in "App" located and not in any other directory
  6. Click in Project Navigator on Product and configure your products
  7. Click on PropertyList and map your Reference Name with your id
  8. Press CMD + Shift + , to open "scheme edit"
  9. Select left Run and Options
  10. Select "Product.storekit" in "StoreKit Configuration"

Notes

Currently just tested with "Non-Consumable In-App Purchase"

API

list(...)

list(options: { list: [registerProduct]; }) => Promise<{ value: boolean; }>
ParamType
options{ list: registerProduct; }

Returns: Promise<{ value: boolean; }>


getStoreProducts()

getStoreProducts() => Promise<any>

Returns: Promise<any>


getPurchasedItems()

getPurchasedItems() => Promise<any>

Returns: Promise<any>


getProduct(...)

getProduct(options: { id: string; }) => Promise<{ value: string; }>
ParamType
options{ id: string; }

Returns: Promise<{ value: string; }>


purchase(...)

purchase(options: { id: string; }) => Promise<{ value: boolean; }>
ParamType
options{ id: string; }

Returns: Promise<{ value: boolean; }>


Interfaces

registerProduct

PropType
referencestring
idstring
0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.1

10 months ago