Web
Instructions for installing the Web SDK to enable purchases on the web
RevenueCat provides backend, mobile and web SDKs to to make implementing in-app and web purchases and subscriptions easy. With our SDKs, you can build and manage your app business on any platform without having to maintain your own backend infrastructure. You can read more about how RevenueCat fits into your app or you can sign up for free to start building.
The RevenueCat Web SDK supports multiple billing providers; for full compatibility, see the RevenueCat Web SDK page.
The SDK allows you to easily implement subscriptions in your web app, or build a web subscription page for your mobile app. You may use an existing supported billing provider, or let RevenueCat's Web Billing engine handle the recurring billing logic, manage what entitlements customers have access to, and automatically recover payments in the case of billing issues. Web Billing uses Stripe as a trusted payment gateway.
Installation
To install the RevenueCat Web SDK, add the @revenuecat/purchases-js package to your project using the package manager of your choice:
- npm
- yarn
npm install --save @revenuecat/purchases-js
yarn add @revenuecat/purchases-js
Next steps
Now that you've installed the RevenueCat Web SDK, follow the instructions to configure it.