@stripe/stripe-js 7.6.0 → 7.7.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.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/pure.js +2 -2
- package/dist/pure.mjs +2 -2
- package/dist/stripe-js/elements/issuing/index.d.mts +1 -0
- package/dist/stripe-js/elements/issuing/index.d.ts +1 -0
- package/dist/stripe-js/elements/issuing/issuing-add-to-wallet-button.d.mts +70 -0
- package/dist/stripe-js/elements/issuing/issuing-add-to-wallet-button.d.ts +70 -0
- package/dist/stripe-js/elements-group.d.mts +34 -2
- package/dist/stripe-js/elements-group.d.ts +34 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -55,7 +55,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
55
55
|
|
|
56
56
|
stripe._registerWrapper({
|
|
57
57
|
name: 'stripe-js',
|
|
58
|
-
version: "7.
|
|
58
|
+
version: "7.7.0",
|
|
59
59
|
startTime: startTime
|
|
60
60
|
});
|
|
61
61
|
};
|
|
@@ -151,7 +151,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
151
151
|
var expectedVersion = RELEASE_TRAIN;
|
|
152
152
|
|
|
153
153
|
if (isTestKey && version !== expectedVersion) {
|
|
154
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.
|
|
154
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.7.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/index.mjs
CHANGED
|
@@ -51,7 +51,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
51
51
|
|
|
52
52
|
stripe._registerWrapper({
|
|
53
53
|
name: 'stripe-js',
|
|
54
|
-
version: "7.
|
|
54
|
+
version: "7.7.0",
|
|
55
55
|
startTime: startTime
|
|
56
56
|
});
|
|
57
57
|
};
|
|
@@ -147,7 +147,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
147
147
|
var expectedVersion = RELEASE_TRAIN;
|
|
148
148
|
|
|
149
149
|
if (isTestKey && version !== expectedVersion) {
|
|
150
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.
|
|
150
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.7.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/pure.js
CHANGED
|
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
71
71
|
|
|
72
72
|
stripe._registerWrapper({
|
|
73
73
|
name: 'stripe-js',
|
|
74
|
-
version: "7.
|
|
74
|
+
version: "7.7.0",
|
|
75
75
|
startTime: startTime
|
|
76
76
|
});
|
|
77
77
|
};
|
|
@@ -167,7 +167,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
167
167
|
var expectedVersion = RELEASE_TRAIN;
|
|
168
168
|
|
|
169
169
|
if (isTestKey && version !== expectedVersion) {
|
|
170
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.
|
|
170
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.7.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/pure.mjs
CHANGED
|
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
67
67
|
|
|
68
68
|
stripe._registerWrapper({
|
|
69
69
|
name: 'stripe-js',
|
|
70
|
-
version: "7.
|
|
70
|
+
version: "7.7.0",
|
|
71
71
|
startTime: startTime
|
|
72
72
|
});
|
|
73
73
|
};
|
|
@@ -163,7 +163,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
163
163
|
var expectedVersion = RELEASE_TRAIN;
|
|
164
164
|
|
|
165
165
|
if (isTestKey && version !== expectedVersion) {
|
|
166
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.
|
|
166
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.7.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
var stripe = maybeStripe.apply(undefined, args);
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {StripeElementBase} from '../base';
|
|
2
|
+
|
|
3
|
+
export type StripeIssuingAddToWalletButtonElement = StripeElementBase & {
|
|
4
|
+
/**
|
|
5
|
+
* Triggered when the element is clicked.
|
|
6
|
+
*/
|
|
7
|
+
on(
|
|
8
|
+
eventType: 'click',
|
|
9
|
+
handler: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
10
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
11
|
+
once(
|
|
12
|
+
eventType: 'click',
|
|
13
|
+
handler: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
14
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
15
|
+
off(
|
|
16
|
+
eventType: 'click',
|
|
17
|
+
handler?: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
18
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Triggered when add to wallet flow is complete.
|
|
22
|
+
*/
|
|
23
|
+
on(
|
|
24
|
+
eventType: 'success',
|
|
25
|
+
handler: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
26
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
27
|
+
once(
|
|
28
|
+
eventType: 'success',
|
|
29
|
+
handler: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
30
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
31
|
+
off(
|
|
32
|
+
eventType: 'success',
|
|
33
|
+
handler?: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
34
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Updates the options the `IssuingAddToWalletButtonElement` was initialized with.
|
|
38
|
+
* Updates are merged into the existing configuration.
|
|
39
|
+
*/
|
|
40
|
+
update(options: Partial<StripeIssuingAddToWalletButtonElementOptions>): void;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export interface StripeIssuingAddToWalletButtonElementOptions {
|
|
44
|
+
/**
|
|
45
|
+
* The token (e.g. `ic_abc123`) of the issued card to add to the user's wallet.
|
|
46
|
+
*/
|
|
47
|
+
issuingCard: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The secret component of the ephemeral key with which to authenticate this sensitive
|
|
51
|
+
* card provisioning request
|
|
52
|
+
*/
|
|
53
|
+
ephemeralKeySecret: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
|
|
57
|
+
*/
|
|
58
|
+
nonce: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The type of Add to Wallet button to display. For now, only 'apple' is supported.
|
|
62
|
+
*/
|
|
63
|
+
wallet: 'apple';
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The height of the button in pixels. Defaults to 44px.
|
|
67
|
+
* Must be between 36px and 55px.
|
|
68
|
+
*/
|
|
69
|
+
buttonHeight?: number;
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {StripeElementBase} from '../base';
|
|
2
|
+
|
|
3
|
+
export type StripeIssuingAddToWalletButtonElement = StripeElementBase & {
|
|
4
|
+
/**
|
|
5
|
+
* Triggered when the element is clicked.
|
|
6
|
+
*/
|
|
7
|
+
on(
|
|
8
|
+
eventType: 'click',
|
|
9
|
+
handler: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
10
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
11
|
+
once(
|
|
12
|
+
eventType: 'click',
|
|
13
|
+
handler: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
14
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
15
|
+
off(
|
|
16
|
+
eventType: 'click',
|
|
17
|
+
handler?: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
18
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Triggered when add to wallet flow is complete.
|
|
22
|
+
*/
|
|
23
|
+
on(
|
|
24
|
+
eventType: 'success',
|
|
25
|
+
handler: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
26
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
27
|
+
once(
|
|
28
|
+
eventType: 'success',
|
|
29
|
+
handler: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
30
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
31
|
+
off(
|
|
32
|
+
eventType: 'success',
|
|
33
|
+
handler?: (event: {elementType: 'issuingAddToWalletButton'}) => any
|
|
34
|
+
): StripeIssuingAddToWalletButtonElement;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Updates the options the `IssuingAddToWalletButtonElement` was initialized with.
|
|
38
|
+
* Updates are merged into the existing configuration.
|
|
39
|
+
*/
|
|
40
|
+
update(options: Partial<StripeIssuingAddToWalletButtonElementOptions>): void;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export interface StripeIssuingAddToWalletButtonElementOptions {
|
|
44
|
+
/**
|
|
45
|
+
* The token (e.g. `ic_abc123`) of the issued card to add to the user's wallet.
|
|
46
|
+
*/
|
|
47
|
+
issuingCard: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The secret component of the ephemeral key with which to authenticate this sensitive
|
|
51
|
+
* card provisioning request
|
|
52
|
+
*/
|
|
53
|
+
ephemeralKeySecret: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
|
|
57
|
+
*/
|
|
58
|
+
nonce: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The type of Add to Wallet button to display. For now, only 'apple' is supported.
|
|
62
|
+
*/
|
|
63
|
+
wallet: 'apple';
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The height of the button in pixels. Defaults to 44px.
|
|
67
|
+
* Must be between 36px and 55px.
|
|
68
|
+
*/
|
|
69
|
+
buttonHeight?: number;
|
|
70
|
+
}
|
|
@@ -49,6 +49,7 @@ import {
|
|
|
49
49
|
StripeExpressCheckoutElement,
|
|
50
50
|
StripeExpressCheckoutElementOptions,
|
|
51
51
|
StripeAddressElementGetElementOptions,
|
|
52
|
+
StripeTaxIdElement,
|
|
52
53
|
} from './elements';
|
|
53
54
|
import {StripeError} from './stripe';
|
|
54
55
|
|
|
@@ -519,7 +520,9 @@ export type StripeElementType =
|
|
|
519
520
|
| 'issuingCardCvcDisplay'
|
|
520
521
|
| 'issuingCardExpiryDisplay'
|
|
521
522
|
| 'issuingCardPinDisplay'
|
|
522
|
-
| 'issuingCardCopyButton'
|
|
523
|
+
| 'issuingCardCopyButton'
|
|
524
|
+
| 'taxId'
|
|
525
|
+
| 'issuingAddToWalletButton';
|
|
523
526
|
|
|
524
527
|
export type StripeElement =
|
|
525
528
|
| StripeAddressElement
|
|
@@ -545,7 +548,8 @@ export type StripeElement =
|
|
|
545
548
|
| StripeIssuingCardExpiryDisplayElement
|
|
546
549
|
| StripeIssuingCardPinDisplayElement
|
|
547
550
|
| StripeIssuingCardCopyButtonElement
|
|
548
|
-
| StripeShippingAddressElement
|
|
551
|
+
| StripeShippingAddressElement
|
|
552
|
+
| StripeTaxIdElement;
|
|
549
553
|
|
|
550
554
|
export type StripeElementLocale =
|
|
551
555
|
| 'auto'
|
|
@@ -788,6 +792,20 @@ export interface StripeElementsOptionsMode extends BaseStripeElementsOptions {
|
|
|
788
792
|
*/
|
|
789
793
|
payment_method_types?: string[];
|
|
790
794
|
|
|
795
|
+
/**
|
|
796
|
+
* The list of payment method types to exclude from use with this payment.
|
|
797
|
+
*
|
|
798
|
+
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
799
|
+
*/
|
|
800
|
+
excludedPaymentMethodTypes?: string[];
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* The list of payment method types to allow for use with this payment. From this list, Stripe will automatically render the relevant payment methods for this payment.
|
|
804
|
+
*
|
|
805
|
+
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
806
|
+
*/
|
|
807
|
+
allowedPaymentMethodTypes?: string[];
|
|
808
|
+
|
|
791
809
|
/**
|
|
792
810
|
* When using automatic payment methods (omitting paymentMethodTypes), provide a
|
|
793
811
|
* payment method configuration ID for deriving payment methods.
|
|
@@ -916,6 +934,20 @@ export interface StripeElementsUpdateOptions {
|
|
|
916
934
|
*/
|
|
917
935
|
paymentMethodTypes?: string[];
|
|
918
936
|
|
|
937
|
+
/**
|
|
938
|
+
* The list of payment method types to exclude from use with this payment.
|
|
939
|
+
*
|
|
940
|
+
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
941
|
+
*/
|
|
942
|
+
excludedPaymentMethodTypes?: string[];
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* The list of payment method types to allow for use with this payment. From this list, Stripe will automatically render the relevant payment methods for this payment.
|
|
946
|
+
*
|
|
947
|
+
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
948
|
+
*/
|
|
949
|
+
allowedPaymentMethodTypes?: string[];
|
|
950
|
+
|
|
919
951
|
/**
|
|
920
952
|
* The Stripe account ID which is the business of record.
|
|
921
953
|
*
|
|
@@ -49,6 +49,7 @@ import {
|
|
|
49
49
|
StripeExpressCheckoutElement,
|
|
50
50
|
StripeExpressCheckoutElementOptions,
|
|
51
51
|
StripeAddressElementGetElementOptions,
|
|
52
|
+
StripeTaxIdElement,
|
|
52
53
|
} from './elements';
|
|
53
54
|
import {StripeError} from './stripe';
|
|
54
55
|
|
|
@@ -519,7 +520,9 @@ export type StripeElementType =
|
|
|
519
520
|
| 'issuingCardCvcDisplay'
|
|
520
521
|
| 'issuingCardExpiryDisplay'
|
|
521
522
|
| 'issuingCardPinDisplay'
|
|
522
|
-
| 'issuingCardCopyButton'
|
|
523
|
+
| 'issuingCardCopyButton'
|
|
524
|
+
| 'taxId'
|
|
525
|
+
| 'issuingAddToWalletButton';
|
|
523
526
|
|
|
524
527
|
export type StripeElement =
|
|
525
528
|
| StripeAddressElement
|
|
@@ -545,7 +548,8 @@ export type StripeElement =
|
|
|
545
548
|
| StripeIssuingCardExpiryDisplayElement
|
|
546
549
|
| StripeIssuingCardPinDisplayElement
|
|
547
550
|
| StripeIssuingCardCopyButtonElement
|
|
548
|
-
| StripeShippingAddressElement
|
|
551
|
+
| StripeShippingAddressElement
|
|
552
|
+
| StripeTaxIdElement;
|
|
549
553
|
|
|
550
554
|
export type StripeElementLocale =
|
|
551
555
|
| 'auto'
|
|
@@ -788,6 +792,20 @@ export interface StripeElementsOptionsMode extends BaseStripeElementsOptions {
|
|
|
788
792
|
*/
|
|
789
793
|
payment_method_types?: string[];
|
|
790
794
|
|
|
795
|
+
/**
|
|
796
|
+
* The list of payment method types to exclude from use with this payment.
|
|
797
|
+
*
|
|
798
|
+
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
799
|
+
*/
|
|
800
|
+
excludedPaymentMethodTypes?: string[];
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* The list of payment method types to allow for use with this payment. From this list, Stripe will automatically render the relevant payment methods for this payment.
|
|
804
|
+
*
|
|
805
|
+
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
806
|
+
*/
|
|
807
|
+
allowedPaymentMethodTypes?: string[];
|
|
808
|
+
|
|
791
809
|
/**
|
|
792
810
|
* When using automatic payment methods (omitting paymentMethodTypes), provide a
|
|
793
811
|
* payment method configuration ID for deriving payment methods.
|
|
@@ -916,6 +934,20 @@ export interface StripeElementsUpdateOptions {
|
|
|
916
934
|
*/
|
|
917
935
|
paymentMethodTypes?: string[];
|
|
918
936
|
|
|
937
|
+
/**
|
|
938
|
+
* The list of payment method types to exclude from use with this payment.
|
|
939
|
+
*
|
|
940
|
+
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
941
|
+
*/
|
|
942
|
+
excludedPaymentMethodTypes?: string[];
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* The list of payment method types to allow for use with this payment. From this list, Stripe will automatically render the relevant payment methods for this payment.
|
|
946
|
+
*
|
|
947
|
+
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
948
|
+
*/
|
|
949
|
+
allowedPaymentMethodTypes?: string[];
|
|
950
|
+
|
|
919
951
|
/**
|
|
920
952
|
* The Stripe account ID which is the business of record.
|
|
921
953
|
*
|