You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A bridge for CafeBazaar (Android App Store) in-app-billing SDK (Poolakey) in CapacitorJs
Install
npm install capacitor-poolakey
npx cap sync
or
yarn add capacitor-poolakey
npx cap sync
Usage
import{Poolakey}from"capacitor-poolakey";classmyClassComponentextendsReact.Component{getPurchasedProducts(){Poolakey.getPurchasedProducts().then((res)=>{console.log("Poolakey: getPurchasedProducts succeed")console.log(res?.list)}).catch(err=>{console.log(`Poolakey: getPurchasedProducts failed: ${err}`)})}componentDidMount(){Poolakey.connectPayment(rsaPublicKey).then(()=>{console.log("Poolakey: connected")this.getPurchasedProducts()}).catch(err=>{console.log(`Poolakey: failed to connect: ${err}`)})}componentWillUnmount(){Poolakey.disconnectPayment().then(()=>{console.log("Poolakey: disconnected on unmount")}).catch(err=>{console.log(`Poolakey: failed to disconnect on unmount: ${err}`)})}}