Cafebazaar in app payment integration for Ionic Capacitor
npm install cafebazaar-capacitorCafebazaar in app payment integration for Ionic Capacitor
``bash`
npm install cafebazaar-capacitor
npx cap sync
* initialize(...)
* purchase(...)
* consume(...)
`typescript`
initialize(options: { rsaKey: string; }) => Promise
| Param | Type |
| ------------- | -------------------------------- |
| options | { rsaKey: string; } |
--------------------
`typescript`
purchase(options: { productId: string; payload?: string; }) => Promise<{ purchaseToken: string; }>
| Param | Type |
| ------------- | ----------------------------------------------------- |
| options | { productId: string; payload?: string; } |
Returns: Promise<{ purchaseToken: string; }>
--------------------
`typescript`
consume(options: { purchaseToken: string; }) => Promise
| Param | Type |
| ------------- | --------------------------------------- |
| options` | { purchaseToken: string; } |
--------------------