@sintecinformatik/checkout 1.2.0 → 1.3.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/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -14,6 +14,8 @@ interface StartCheckoutParams {
|
|
|
14
14
|
customerEmail?: string;
|
|
15
15
|
/** Customer name (optional, stored with license) */
|
|
16
16
|
customerName?: string;
|
|
17
|
+
/** Skip trial period and charge immediately (default: false) */
|
|
18
|
+
skipTrial?: boolean;
|
|
17
19
|
}
|
|
18
20
|
interface CheckoutButtonProps extends StartCheckoutParams {
|
|
19
21
|
/** Base URL of the license server */
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ interface StartCheckoutParams {
|
|
|
14
14
|
customerEmail?: string;
|
|
15
15
|
/** Customer name (optional, stored with license) */
|
|
16
16
|
customerName?: string;
|
|
17
|
+
/** Skip trial period and charge immediately (default: false) */
|
|
18
|
+
skipTrial?: boolean;
|
|
17
19
|
}
|
|
18
20
|
interface CheckoutButtonProps extends StartCheckoutParams {
|
|
19
21
|
/** Base URL of the license server */
|
package/dist/index.js
CHANGED
|
@@ -47,7 +47,8 @@ function useCheckout(options = {}) {
|
|
|
47
47
|
productSlug: params.productSlug,
|
|
48
48
|
licenseType: params.licenseType,
|
|
49
49
|
customerEmail: params.customerEmail,
|
|
50
|
-
customerName: params.customerName
|
|
50
|
+
customerName: params.customerName,
|
|
51
|
+
skipTrial: params.skipTrial
|
|
51
52
|
})
|
|
52
53
|
});
|
|
53
54
|
const data = await response.json();
|
package/dist/index.mjs
CHANGED
|
@@ -19,7 +19,8 @@ function useCheckout(options = {}) {
|
|
|
19
19
|
productSlug: params.productSlug,
|
|
20
20
|
licenseType: params.licenseType,
|
|
21
21
|
customerEmail: params.customerEmail,
|
|
22
|
-
customerName: params.customerName
|
|
22
|
+
customerName: params.customerName,
|
|
23
|
+
skipTrial: params.skipTrial
|
|
23
24
|
})
|
|
24
25
|
});
|
|
25
26
|
const data = await response.json();
|