@stripe/stripe-js 10.0.0-rc.4 → 10.0.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
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
71
71
 
72
72
  stripe._registerWrapper({
73
73
  name: 'stripe-js',
74
- version: "10.0.0-rc.4",
74
+ version: "10.0.0",
75
75
  startTime: startTime
76
76
  });
77
77
  };
@@ -181,7 +181,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
181
181
  var expectedVersion = RELEASE_TRAIN;
182
182
 
183
183
  if (isTestKey && version !== expectedVersion) {
184
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.4", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
184
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
185
185
  }
186
186
 
187
187
  var stripe = maybeStripe.apply(undefined, args);
package/dist/index.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: "10.0.0-rc.4",
70
+ version: "10.0.0",
71
71
  startTime: startTime
72
72
  });
73
73
  };
@@ -177,7 +177,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
177
177
  var expectedVersion = RELEASE_TRAIN;
178
178
 
179
179
  if (isTestKey && version !== expectedVersion) {
180
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.4", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
180
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
181
181
  }
182
182
 
183
183
  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: "10.0.0-rc.4",
74
+ version: "10.0.0",
75
75
  startTime: startTime
76
76
  });
77
77
  };
@@ -181,7 +181,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
181
181
  var expectedVersion = RELEASE_TRAIN;
182
182
 
183
183
  if (isTestKey && version !== expectedVersion) {
184
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.4", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
184
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
185
185
  }
186
186
 
187
187
  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: "10.0.0-rc.4",
70
+ version: "10.0.0",
71
71
  startTime: startTime
72
72
  });
73
73
  };
@@ -177,7 +177,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
177
177
  var expectedVersion = RELEASE_TRAIN;
178
178
 
179
179
  if (isTestKey && version !== expectedVersion) {
180
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.4", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
180
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
181
181
  }
182
182
 
183
183
  var stripe = maybeStripe.apply(undefined, args);
@@ -6,6 +6,7 @@ import {
6
6
  CreatePaymentMethodAmazonPayData,
7
7
  CreatePaymentMethodAuBecsDebitData,
8
8
  CreatePaymentMethodBancontactData,
9
+ CreatePaymentMethodBlikData,
9
10
  CreatePaymentMethodCardData,
10
11
  CreatePaymentMethodCashappData,
11
12
  CreatePaymentMethodIdealData,
@@ -127,6 +128,45 @@ export interface ConfirmCashappSetupOptions {
127
128
  handleActions?: boolean;
128
129
  }
129
130
 
131
+ /**
132
+ * Data to be sent with a `stripe.confirmBlikSetup` request.
133
+ * Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
134
+ */
135
+ export interface ConfirmBlikSetupData extends SetupIntentConfirmParams {
136
+ /**
137
+ * Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
138
+ * This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
139
+ *
140
+ * @recommended
141
+ */
142
+ payment_method?: string | Omit<CreatePaymentMethodBlikData, 'type'>;
143
+
144
+ /**
145
+ * An object containing payment-method-specific configuration to confirm the [SetupIntent](https://stripe.com/docs/api/setup_intents) with.
146
+ */
147
+ payment_method_options: {
148
+ /**
149
+ * A configuration for this BLIK setup.
150
+ */
151
+ blik: {
152
+ /**
153
+ * Your customer's 6-digit BLIK code.
154
+ */
155
+ code: string;
156
+ };
157
+ };
158
+ }
159
+
160
+ /**
161
+ * An options object to control the behavior of `stripe.confirmBlikSetup`.
162
+ */
163
+ export interface ConfirmBlikSetupOptions {
164
+ /**
165
+ * Set this to `false` if you want to manually determine if the confirmation has succeeded or failed.
166
+ */
167
+ handleActions?: boolean;
168
+ }
169
+
130
170
  /**
131
171
  * Data to be sent with a `stripe.confirmIdealSetup` request.
132
172
  * Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
@@ -6,6 +6,7 @@ import {
6
6
  CreatePaymentMethodAmazonPayData,
7
7
  CreatePaymentMethodAuBecsDebitData,
8
8
  CreatePaymentMethodBancontactData,
9
+ CreatePaymentMethodBlikData,
9
10
  CreatePaymentMethodCardData,
10
11
  CreatePaymentMethodCashappData,
11
12
  CreatePaymentMethodIdealData,
@@ -127,6 +128,45 @@ export interface ConfirmCashappSetupOptions {
127
128
  handleActions?: boolean;
128
129
  }
129
130
 
131
+ /**
132
+ * Data to be sent with a `stripe.confirmBlikSetup` request.
133
+ * Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
134
+ */
135
+ export interface ConfirmBlikSetupData extends SetupIntentConfirmParams {
136
+ /**
137
+ * Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
138
+ * This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
139
+ *
140
+ * @recommended
141
+ */
142
+ payment_method?: string | Omit<CreatePaymentMethodBlikData, 'type'>;
143
+
144
+ /**
145
+ * An object containing payment-method-specific configuration to confirm the [SetupIntent](https://stripe.com/docs/api/setup_intents) with.
146
+ */
147
+ payment_method_options: {
148
+ /**
149
+ * A configuration for this BLIK setup.
150
+ */
151
+ blik: {
152
+ /**
153
+ * Your customer's 6-digit BLIK code.
154
+ */
155
+ code: string;
156
+ };
157
+ };
158
+ }
159
+
160
+ /**
161
+ * An options object to control the behavior of `stripe.confirmBlikSetup`.
162
+ */
163
+ export interface ConfirmBlikSetupOptions {
164
+ /**
165
+ * Set this to `false` if you want to manually determine if the confirmation has succeeded or failed.
166
+ */
167
+ handleActions?: boolean;
168
+ }
169
+
130
170
  /**
131
171
  * Data to be sent with a `stripe.confirmIdealSetup` request.
132
172
  * Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
@@ -930,6 +930,18 @@ export interface Stripe {
930
930
  data?: setupIntents.ConfirmBancontactSetupData
931
931
  ): Promise<SetupIntentResult>;
932
932
 
933
+ /**
934
+ * Use `stripe.confirmBlikSetup` when the customer submits a custom BLIK setup form.
935
+ * When called, it confirms the [SetupIntent](https://stripe.com/docs/api/setup_intents) with the BLIK code and billing details in `data`, then waits for the customer to authorize the mandate in their banking app.
936
+ *
937
+ * @docs https://stripe.com/docs/js/setup_intents/confirm_blik_setup
938
+ */
939
+ confirmBlikSetup(
940
+ clientSecret: string,
941
+ data: setupIntents.ConfirmBlikSetupData,
942
+ options?: setupIntents.ConfirmBlikSetupOptions
943
+ ): Promise<SetupIntentResult>;
944
+
933
945
  /**
934
946
  * Use `stripe.confirmCardSetup` in the [Setup Intents API flow](https://stripe.com/docs/payments/save-and-reuse) when the customer submits your payment form.
935
947
  * When called, it will confirm the [SetupIntent](https://stripe.com/docs/api/setup_intents) with `data` you provide and carry out 3DS or other next actions if they are required.
@@ -930,6 +930,18 @@ export interface Stripe {
930
930
  data?: setupIntents.ConfirmBancontactSetupData
931
931
  ): Promise<SetupIntentResult>;
932
932
 
933
+ /**
934
+ * Use `stripe.confirmBlikSetup` when the customer submits a custom BLIK setup form.
935
+ * When called, it confirms the [SetupIntent](https://stripe.com/docs/api/setup_intents) with the BLIK code and billing details in `data`, then waits for the customer to authorize the mandate in their banking app.
936
+ *
937
+ * @docs https://stripe.com/docs/js/setup_intents/confirm_blik_setup
938
+ */
939
+ confirmBlikSetup(
940
+ clientSecret: string,
941
+ data: setupIntents.ConfirmBlikSetupData,
942
+ options?: setupIntents.ConfirmBlikSetupOptions
943
+ ): Promise<SetupIntentResult>;
944
+
933
945
  /**
934
946
  * Use `stripe.confirmCardSetup` in the [Setup Intents API flow](https://stripe.com/docs/payments/save-and-reuse) when the customer submits your payment form.
935
947
  * When called, it will confirm the [SetupIntent](https://stripe.com/docs/api/setup_intents) with `data` you provide and carry out 3DS or other next actions if they are required.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "10.0.0-rc.4",
3
+ "version": "10.0.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "lib/index.js",
@@ -8,7 +8,7 @@
8
8
  "jsnext:main": "lib/index.mjs",
9
9
  "types": "lib/index.d.ts",
10
10
  "typings": "lib/index.d.ts",
11
- "releaseCandidate": true,
11
+ "releaseCandidate": false,
12
12
  "scripts": {
13
13
  "test": "yarn lint && yarn test:unit && yarn test:package-types && yarn test:types && yarn typecheck",
14
14
  "test:unit": "jest",