@revenuecat/purchases-js 0.15.1 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/Purchases.es.d.ts +6 -1
- package/dist/Purchases.es.js +3855 -2917
- package/dist/Purchases.umd.js +46 -33
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -12,11 +12,11 @@ Login @ [app.revenuecat.com](https://app.revenuecat.com)
|
|
|
12
12
|
|
|
13
13
|
- Connect your Stripe account if you haven't already (More payment gateways are coming soon)
|
|
14
14
|
- Create a Project (if you haven't already)
|
|
15
|
-
- Add a new
|
|
15
|
+
- Add a new Web Billing app
|
|
16
16
|
- Get the sandbox API key or production API key (depending on the environment)
|
|
17
|
-
- Create some products for the
|
|
18
|
-
- Create an offering and add packages with
|
|
19
|
-
- Create the entitlements you need in your app and link them to the
|
|
17
|
+
- Create some products for the Web Billing App
|
|
18
|
+
- Create an offering and add packages with Web Billing products
|
|
19
|
+
- Create the entitlements you need in your app and link them to the Web Billing products
|
|
20
20
|
|
|
21
21
|
# Installation
|
|
22
22
|
|
|
@@ -32,7 +32,7 @@ Login @ [app.revenuecat.com](https://app.revenuecat.com)
|
|
|
32
32
|
|
|
33
33
|
# Usage
|
|
34
34
|
|
|
35
|
-
See the [RevenueCat docs](https://www.revenuecat.com/docs/web/
|
|
35
|
+
See the [RevenueCat docs](https://www.revenuecat.com/docs/web/web-billing) and the [SDK Reference](https://revenuecat.github.io/purchases-js-docs).
|
|
36
36
|
|
|
37
37
|
# Development
|
|
38
38
|
|
|
@@ -110,7 +110,7 @@ npm run lint
|
|
|
110
110
|
|
|
111
111
|
## Running E2E tests
|
|
112
112
|
|
|
113
|
-
Please check the Demo app readme [here](./examples/
|
|
113
|
+
Please check the Demo app readme [here](./examples/webbilling-demo/README.md#e2e-tests)
|
|
114
114
|
|
|
115
115
|
## Update API specs
|
|
116
116
|
|
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare interface CustomerInfo {
|
|
|
27
27
|
readonly activeSubscriptions: Set<string>;
|
|
28
28
|
/**
|
|
29
29
|
* URL to manage the active subscription of the user.
|
|
30
|
-
* If this user has an active
|
|
30
|
+
* If this user has an active Web Billing subscription, a link to the management page.
|
|
31
31
|
* If this user has an active iOS subscription, this will point to the App Store.
|
|
32
32
|
* If the user has an active Play Store subscription it will point there.
|
|
33
33
|
* If there are no active subscriptions it will be null.
|
|
@@ -352,8 +352,13 @@ export declare interface Package {
|
|
|
352
352
|
readonly identifier: string;
|
|
353
353
|
/**
|
|
354
354
|
* The {@link Product} assigned to this package.
|
|
355
|
+
* @deprecated - Use {@link Package.webBillingProduct} instead.
|
|
355
356
|
*/
|
|
356
357
|
readonly rcBillingProduct: Product;
|
|
358
|
+
/**
|
|
359
|
+
* The {@link Product} assigned to this package.
|
|
360
|
+
*/
|
|
361
|
+
readonly webBillingProduct: Product;
|
|
357
362
|
/**
|
|
358
363
|
* The type of package.
|
|
359
364
|
*/
|