@stripe/stripe-js 7.0.0 → 7.2.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 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.0.0",
58
+ version: "7.2.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.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
154
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.2.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.0.0",
54
+ version: "7.2.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.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
150
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.2.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.0.0",
74
+ version: "7.2.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.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
170
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.2.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.0.0",
70
+ version: "7.2.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.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
166
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.2.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);
@@ -42,15 +42,18 @@ export interface StripePaymentMethodMessagingElementOptions {
42
42
  * The currency to display.
43
43
  */
44
44
  currency:
45
- | 'USD'
46
- | 'GBP'
47
- | 'EUR'
45
+ | 'AUD'
46
+ | 'CAD'
47
+ | 'CHF'
48
+ | 'CZK'
48
49
  | 'DKK'
50
+ | 'EUR'
51
+ | 'GBP'
49
52
  | 'NOK'
53
+ | 'NZD'
54
+ | 'PLN'
50
55
  | 'SEK'
51
- | 'AUD'
52
- | 'CAD'
53
- | 'NZD';
56
+ | 'USD';
54
57
 
55
58
  /**
56
59
  * Payment methods to show messaging for.
@@ -71,24 +74,30 @@ export interface StripePaymentMethodMessagingElementOptions {
71
74
  /**
72
75
  * The country the end-buyer is in.
73
76
  */
74
- countryCode:
75
- | 'US'
76
- | 'CA'
77
- | 'AU'
78
- | 'NZ'
79
- | 'GB'
80
- | 'IE'
81
- | 'FR'
82
- | 'ES'
83
- | 'DE'
77
+ countryCode?:
84
78
  | 'AT'
79
+ | 'AU'
85
80
  | 'BE'
81
+ | 'CA'
82
+ | 'CH'
83
+ | 'CZ'
84
+ | 'DE'
86
85
  | 'DK'
86
+ | 'ES'
87
87
  | 'FI'
88
+ | 'FR'
89
+ | 'GB'
90
+ | 'GR'
91
+ | 'IE'
88
92
  | 'IT'
89
93
  | 'NL'
90
94
  | 'NO'
91
- | 'SE';
95
+ | 'NZ'
96
+ | 'PL'
97
+ | 'PT'
98
+ | 'RO'
99
+ | 'SE'
100
+ | 'US';
92
101
 
93
102
  /**
94
103
  * The logo color to display in the message. Defaults to black
@@ -42,15 +42,18 @@ export interface StripePaymentMethodMessagingElementOptions {
42
42
  * The currency to display.
43
43
  */
44
44
  currency:
45
- | 'USD'
46
- | 'GBP'
47
- | 'EUR'
45
+ | 'AUD'
46
+ | 'CAD'
47
+ | 'CHF'
48
+ | 'CZK'
48
49
  | 'DKK'
50
+ | 'EUR'
51
+ | 'GBP'
49
52
  | 'NOK'
53
+ | 'NZD'
54
+ | 'PLN'
50
55
  | 'SEK'
51
- | 'AUD'
52
- | 'CAD'
53
- | 'NZD';
56
+ | 'USD';
54
57
 
55
58
  /**
56
59
  * Payment methods to show messaging for.
@@ -71,24 +74,30 @@ export interface StripePaymentMethodMessagingElementOptions {
71
74
  /**
72
75
  * The country the end-buyer is in.
73
76
  */
74
- countryCode:
75
- | 'US'
76
- | 'CA'
77
- | 'AU'
78
- | 'NZ'
79
- | 'GB'
80
- | 'IE'
81
- | 'FR'
82
- | 'ES'
83
- | 'DE'
77
+ countryCode?:
84
78
  | 'AT'
79
+ | 'AU'
85
80
  | 'BE'
81
+ | 'CA'
82
+ | 'CH'
83
+ | 'CZ'
84
+ | 'DE'
86
85
  | 'DK'
86
+ | 'ES'
87
87
  | 'FI'
88
+ | 'FR'
89
+ | 'GB'
90
+ | 'GR'
91
+ | 'IE'
88
92
  | 'IT'
89
93
  | 'NL'
90
94
  | 'NO'
91
- | 'SE';
95
+ | 'NZ'
96
+ | 'PL'
97
+ | 'PT'
98
+ | 'RO'
99
+ | 'SE'
100
+ | 'US';
92
101
 
93
102
  /**
94
103
  * The logo color to display in the message. Defaults to black
@@ -677,10 +677,9 @@ interface BaseStripeElementsOptions {
677
677
  customerSessionClientSecret?: string;
678
678
 
679
679
  /**
680
- * Requires beta access:
681
- * Contact [Stripe support](https://support.stripe.com/) for more information.
682
- *
683
680
  * Display Custom Payment Methods in the Payment Element that you are already registered with.
681
+ *
682
+ * @docs https://docs.stripe.com/js/elements_object/create#stripe_elements-options-customPaymentMethods
684
683
  */
685
684
  customPaymentMethods?: CustomPaymentMethod[];
686
685
  }
@@ -918,6 +917,13 @@ export interface StripeElementsUpdateOptions {
918
917
  * Display saved PaymentMethods and Customer information.
919
918
  */
920
919
  customerSessionClientSecret?: string;
920
+
921
+ /**
922
+ * Display Custom Payment Methods in the Payment Element that you are already registered with.
923
+ *
924
+ * @docs https://docs.stripe.com/js/elements_object/update#elements_update-options-customPaymentMethods
925
+ */
926
+ customPaymentMethods?: CustomPaymentMethod[];
921
927
  }
922
928
 
923
929
  /*
@@ -677,10 +677,9 @@ interface BaseStripeElementsOptions {
677
677
  customerSessionClientSecret?: string;
678
678
 
679
679
  /**
680
- * Requires beta access:
681
- * Contact [Stripe support](https://support.stripe.com/) for more information.
682
- *
683
680
  * Display Custom Payment Methods in the Payment Element that you are already registered with.
681
+ *
682
+ * @docs https://docs.stripe.com/js/elements_object/create#stripe_elements-options-customPaymentMethods
684
683
  */
685
684
  customPaymentMethods?: CustomPaymentMethod[];
686
685
  }
@@ -918,6 +917,13 @@ export interface StripeElementsUpdateOptions {
918
917
  * Display saved PaymentMethods and Customer information.
919
918
  */
920
919
  customerSessionClientSecret?: string;
920
+
921
+ /**
922
+ * Display Custom Payment Methods in the Payment Element that you are already registered with.
923
+ *
924
+ * @docs https://docs.stripe.com/js/elements_object/update#elements_update-options-customPaymentMethods
925
+ */
926
+ customPaymentMethods?: CustomPaymentMethod[];
921
927
  }
922
928
 
923
929
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "7.0.0",
3
+ "version": "7.2.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "lib/index.js",