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

https://github.com/aeharding/capacitor-tips

Add tips to your capacitor app via in-app purchases
https://github.com/aeharding/capacitor-tips

Last synced: over 1 year ago
JSON representation

Add tips to your capacitor app via in-app purchases

Awesome Lists containing this project

README

          

# capacitor-tips

Add tips to your capacitor app via in-app purchases

## Install

```bash
npm install capacitor-tips
npx cap sync
```

## API

* [`listProducts(...)`](#listproducts)
* [`purchaseProduct(...)`](#purchaseproduct)
* [Interfaces](#interfaces)

### listProducts(...)

```typescript
listProducts(options: { productIdentifiers: string[]; }) => Promise<{ products: Product[]; }>
```

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

**Returns:** Promise<{ products: Product[]; }>

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

### purchaseProduct(...)

```typescript
purchaseProduct(product: Product) => Promise
```

| 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 | |