44 lines
811 B
Markdown
44 lines
811 B
Markdown
# capacitor-promocode
|
|
|
|
## Install
|
|
|
|
```bash
|
|
npm install capacitor-promocode
|
|
npx cap sync
|
|
```
|
|
|
|
## API
|
|
|
|
<docgen-index>
|
|
|
|
* [`launchPromoCodeRedemptionFlow()`](#launchpromocoderedemptionflow)
|
|
* [`isPromoCodeSupported()`](#ispromocodesupported)
|
|
|
|
</docgen-index>
|
|
|
|
<docgen-api>
|
|
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
|
|
|
|
### launchPromoCodeRedemptionFlow()
|
|
|
|
```typescript
|
|
launchPromoCodeRedemptionFlow() => Promise<{ success: boolean; message?: string; }>
|
|
```
|
|
|
|
**Returns:** <code>Promise<{ success: boolean; message?: string; }></code>
|
|
|
|
--------------------
|
|
|
|
|
|
### isPromoCodeSupported()
|
|
|
|
```typescript
|
|
isPromoCodeSupported() => Promise<{ supported: boolean; }>
|
|
```
|
|
|
|
**Returns:** <code>Promise<{ supported: boolean; }></code>
|
|
|
|
--------------------
|
|
|
|
</docgen-api>
|