capacitor-tips
v1.0.0
Published
Add tips to your capacitor app via in-app purchases
Downloads
723
Readme
capacitor-tips
Add tips to your capacitor app via in-app purchases
Install
npm install capacitor-tips
npx cap sync
API
listProducts(...)
listProducts(options: { productIdentifiers: string[]; }) => Promise<{ products: Product[]; }>
| Param | Type |
| ------------- | ---------------------------------------------- |
| options
| { productIdentifiers: string[]; } |
Returns: Promise<{ products: Product[]; }>
purchaseProduct(...)
purchaseProduct(product: Product) => Promise<void>
| Param | Type |
| ------------- | ------------------------------------------- |
| product
| Product |
Interfaces
Product
| Prop | Type | Description |
| ----------------- | ------------------- | --------------------------------- |
| identifier
| string | |
| priceString
| string | Locale formatted price ex $3.99
|
| price
| number | ex. 3.99
|
| description
| string | |
| name
| string | |