@monetize.software/sdk-extension 3.0.0-alpha.19 → 3.0.0-alpha.20
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/dist/chunks/{chrome-port-CG8LYcKe.js → chrome-port-BEMjZQAH.js} +2 -2
- package/dist/chunks/{chrome-port-CG8LYcKe.js.map → chrome-port-BEMjZQAH.js.map} +1 -1
- package/dist/chunks/{chrome-port-DKsnkWLb.js → chrome-port-bfTUUDz_.js} +7 -4
- package/dist/chunks/{chrome-port-DKsnkWLb.js.map → chrome-port-bfTUUDz_.js.map} +1 -1
- package/dist/content.cjs +1 -1
- package/dist/content.js +1 -1
- package/dist/offscreen.cjs +1 -1
- package/dist/offscreen.js +1 -1
- package/package.json +3 -3
|
@@ -1709,7 +1709,9 @@ class It {
|
|
|
1709
1709
|
* инвойсы). Опен-флоу управляется host'ом:
|
|
1710
1710
|
*
|
|
1711
1711
|
* ```ts
|
|
1712
|
-
* const { url } = await billing.getCustomerPortalUrl(
|
|
1712
|
+
* const { url } = await billing.getCustomerPortalUrl({
|
|
1713
|
+
* returnUrl: 'https://your-app.com/account'
|
|
1714
|
+
* });
|
|
1713
1715
|
* window.open(url, '_blank');
|
|
1714
1716
|
* ```
|
|
1715
1717
|
*
|
|
@@ -1727,9 +1729,10 @@ class It {
|
|
|
1727
1729
|
);
|
|
1728
1730
|
const e = {};
|
|
1729
1731
|
this.apiKey && (e["X-Api-Key"] = this.apiKey);
|
|
1730
|
-
const s = this.auth && this.auth.getCachedSession() ? {} : {
|
|
1732
|
+
const s = this.auth && this.auth.getCachedSession() ? { returnUrl: t.returnUrl } : {
|
|
1731
1733
|
email: this.identity?.email,
|
|
1732
|
-
userMeta: this.identity?.userId ? { userId: this.identity.userId } : void 0
|
|
1734
|
+
userMeta: this.identity?.userId ? { userId: this.identity.userId } : void 0,
|
|
1735
|
+
returnUrl: t.returnUrl
|
|
1733
1736
|
};
|
|
1734
1737
|
return { url: (await this.api.request(
|
|
1735
1738
|
`/api/v1/paywall/${this.paywallId}/get-customer-portal`,
|
|
@@ -2175,4 +2178,4 @@ export {
|
|
|
2175
2178
|
_t as s,
|
|
2176
2179
|
Z as w
|
|
2177
2180
|
};
|
|
2178
|
-
//# sourceMappingURL=chrome-port-
|
|
2181
|
+
//# sourceMappingURL=chrome-port-bfTUUDz_.js.map
|