Add tips to your capacitor app via in-app purchases
npm install capacitor-tipsAdd tips to your capacitor app via in-app purchases
``bash`
npm install capacitor-tips
npx cap sync
* listProducts(...)
* purchaseProduct(...)
* Interfaces
`typescript`
listProducts(options: { productIdentifiers: string[]; }) => Promise<{ products: Product[]; }>
| Param | Type |
| ------------- | ---------------------------------------------- |
| options | { productIdentifiers: string[]; } |
Returns: Promise<{ products: Product[]; }>
--------------------
`typescript`
purchaseProduct(product: Product) => Promise
| Param | Type |
| ------------- | ------------------------------------------- |
| product | Product |
--------------------
#### Product
| Prop | Type | Description |
| ------------------ | ------------------- | --------------------------------- |
| identifier | string | |
| priceString | string | Locale formatted price ex $3.99 |price
| | 3.99number | ex. |currencyCode
| | USDstring | ex. |description
| | name` | string | |
| string | |