@funnelfox/payments-sdk 0.1.2-beta.3 → 0.1.2-beta.4
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.cjs +2 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -89,7 +89,8 @@ var StripeCheckoutService = class extends HttpService {
|
|
|
89
89
|
managed: params.managed,
|
|
90
90
|
customer_id: params.customerId,
|
|
91
91
|
customer: params.customer,
|
|
92
|
-
return_url: params.returnUrl
|
|
92
|
+
return_url: params.returnUrl,
|
|
93
|
+
allow_promotion_codes: params.allowPromoCodes
|
|
93
94
|
});
|
|
94
95
|
if (!data.client_secret) {
|
|
95
96
|
throw new CheckoutError("Backend returned no client_secret");
|
package/dist/index.d.cts
CHANGED
|
@@ -23,6 +23,8 @@ interface StripeConfig {
|
|
|
23
23
|
customer?: StripeCustomer;
|
|
24
24
|
/** URL to redirect to after payment completes. Defaults to window.location.href for embedded checkout. */
|
|
25
25
|
returnUrl?: string;
|
|
26
|
+
/** When true, Stripe displays a promotional code input field in the embedded checkout */
|
|
27
|
+
allowPromoCodes?: boolean;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
interface FastSpringConfig {
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ interface StripeConfig {
|
|
|
23
23
|
customer?: StripeCustomer;
|
|
24
24
|
/** URL to redirect to after payment completes. Defaults to window.location.href for embedded checkout. */
|
|
25
25
|
returnUrl?: string;
|
|
26
|
+
/** When true, Stripe displays a promotional code input field in the embedded checkout */
|
|
27
|
+
allowPromoCodes?: boolean;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
interface FastSpringConfig {
|
package/dist/index.js
CHANGED
|
@@ -62,7 +62,8 @@ var StripeCheckoutService = class extends HttpService {
|
|
|
62
62
|
managed: params.managed,
|
|
63
63
|
customer_id: params.customerId,
|
|
64
64
|
customer: params.customer,
|
|
65
|
-
return_url: params.returnUrl
|
|
65
|
+
return_url: params.returnUrl,
|
|
66
|
+
allow_promotion_codes: params.allowPromoCodes
|
|
66
67
|
});
|
|
67
68
|
if (!data.client_secret) {
|
|
68
69
|
throw new CheckoutError("Backend returned no client_secret");
|