Add in-app purchases and paywalls to your Capacitor or Ionic app with one TypeScript API for iOS and Android.
The Capacitor plugin is on the roadmap and is not published yet.cashsdk-capacitor does not
resolve from any registry today, so the code on this page describes the
intended API rather than a package you can install.
Shipping now? Use the iOS or Android SDK, which are
available today. To be notified when this one lands, contact
support@cashsdk.com.
The CashSDK Capacitor plugin gives Ionic and Capacitor apps one fully typed
TypeScript API that runs on iOS (StoreKit 2) and Android (Play Billing). Fetch
offerings, run purchases, and read entitlements with the same code on both
platforms.
Built as a native Capacitor plugin. In-app purchases require native modules, so
the plugin runs on a device or simulator/emulator, not in the web preview.
Purchases are validated server-side, so entitlements stay trustworthy.
Pass a package to purchase. CashSDK drives the native store flow, validates the
receipt server-side, and resolves with the customer's updated entitlements.
ts
const result = await CashSDK.purchase(offering.monthly);
if (result.entitlements.pro?.isActive) {
unlockPro();
}