@stripe/stripe-js 9.16.0 → 10.0.0-rc.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 +3 -3
- package/dist/index.mjs +3 -3
- package/dist/pure.js +3 -3
- package/dist/pure.mjs +3 -3
- package/dist/shared.d.mts +1 -1
- package/dist/shared.d.ts +1 -1
- package/dist/stripe-js/financial-connections.d.mts +23 -0
- package/dist/stripe-js/financial-connections.d.ts +23 -0
- package/dist/stripe-js/payment-intents.d.mts +3 -0
- package/dist/stripe-js/payment-intents.d.ts +3 -0
- package/dist/stripe-js/setup-intents.d.mts +3 -0
- package/dist/stripe-js/setup-intents.d.ts +3 -0
- package/package.json +2 -2
- package/src/shared.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ function _typeof(obj) {
|
|
|
18
18
|
return _typeof(obj);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
var RELEASE_TRAIN = '
|
|
21
|
+
var RELEASE_TRAIN = 'endive';
|
|
22
22
|
|
|
23
23
|
var runtimeVersionToUrlVersion = function runtimeVersionToUrlVersion(version) {
|
|
24
24
|
return version === 3 ? 'v3' : version;
|
|
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
71
71
|
|
|
72
72
|
stripe._registerWrapper({
|
|
73
73
|
name: 'stripe-js',
|
|
74
|
-
version: "
|
|
74
|
+
version: "10.0.0-rc.0",
|
|
75
75
|
startTime: startTime
|
|
76
76
|
});
|
|
77
77
|
};
|
|
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
172
172
|
var expectedVersion = RELEASE_TRAIN;
|
|
173
173
|
|
|
174
174
|
if (isTestKey && version !== expectedVersion) {
|
|
175
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("
|
|
175
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ function _typeof(obj) {
|
|
|
14
14
|
return _typeof(obj);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
var RELEASE_TRAIN = '
|
|
17
|
+
var RELEASE_TRAIN = 'endive';
|
|
18
18
|
|
|
19
19
|
var runtimeVersionToUrlVersion = function runtimeVersionToUrlVersion(version) {
|
|
20
20
|
return version === 3 ? 'v3' : version;
|
|
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
67
67
|
|
|
68
68
|
stripe._registerWrapper({
|
|
69
69
|
name: 'stripe-js',
|
|
70
|
-
version: "
|
|
70
|
+
version: "10.0.0-rc.0",
|
|
71
71
|
startTime: startTime
|
|
72
72
|
});
|
|
73
73
|
};
|
|
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
168
168
|
var expectedVersion = RELEASE_TRAIN;
|
|
169
169
|
|
|
170
170
|
if (isTestKey && version !== expectedVersion) {
|
|
171
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("
|
|
171
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/pure.js
CHANGED
|
@@ -18,7 +18,7 @@ function _typeof(obj) {
|
|
|
18
18
|
return _typeof(obj);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
var RELEASE_TRAIN = '
|
|
21
|
+
var RELEASE_TRAIN = 'endive';
|
|
22
22
|
|
|
23
23
|
var runtimeVersionToUrlVersion = function runtimeVersionToUrlVersion(version) {
|
|
24
24
|
return version === 3 ? 'v3' : version;
|
|
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
71
71
|
|
|
72
72
|
stripe._registerWrapper({
|
|
73
73
|
name: 'stripe-js',
|
|
74
|
-
version: "
|
|
74
|
+
version: "10.0.0-rc.0",
|
|
75
75
|
startTime: startTime
|
|
76
76
|
});
|
|
77
77
|
};
|
|
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
172
172
|
var expectedVersion = RELEASE_TRAIN;
|
|
173
173
|
|
|
174
174
|
if (isTestKey && version !== expectedVersion) {
|
|
175
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("
|
|
175
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/pure.mjs
CHANGED
|
@@ -14,7 +14,7 @@ function _typeof(obj) {
|
|
|
14
14
|
return _typeof(obj);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
var RELEASE_TRAIN = '
|
|
17
|
+
var RELEASE_TRAIN = 'endive';
|
|
18
18
|
|
|
19
19
|
var runtimeVersionToUrlVersion = function runtimeVersionToUrlVersion(version) {
|
|
20
20
|
return version === 3 ? 'v3' : version;
|
|
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
67
67
|
|
|
68
68
|
stripe._registerWrapper({
|
|
69
69
|
name: 'stripe-js',
|
|
70
|
-
version: "
|
|
70
|
+
version: "10.0.0-rc.0",
|
|
71
71
|
startTime: startTime
|
|
72
72
|
});
|
|
73
73
|
};
|
|
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
168
168
|
var expectedVersion = RELEASE_TRAIN;
|
|
169
169
|
|
|
170
170
|
if (isTestKey && version !== expectedVersion) {
|
|
171
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("
|
|
171
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/shared.d.mts
CHANGED
package/dist/shared.d.ts
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requires beta access:
|
|
3
|
+
* Contact [Stripe support](https://support.stripe.com/) for more information.
|
|
4
|
+
*
|
|
5
|
+
* Evidence is subject to server-side eligibility and validation. Providing it
|
|
6
|
+
* does not guarantee that Stripe.js will omit its consent pane.
|
|
7
|
+
*/
|
|
8
|
+
export interface PreCollectedConsent {
|
|
9
|
+
/**
|
|
10
|
+
* ID of a financial_connections.consent object returned by the merchant's server.
|
|
11
|
+
*/
|
|
12
|
+
consent: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Unix timestamp in seconds when the customer affirmatively accepted the complete consent text.
|
|
16
|
+
*/
|
|
17
|
+
collectedAt: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
1
20
|
/**
|
|
2
21
|
* Data to be sent with a `stripe.collectFinancialConnectionsAccounts` request.
|
|
3
22
|
*/
|
|
@@ -6,6 +25,8 @@ export interface CollectFinancialConnectionsAccountsOptions {
|
|
|
6
25
|
* The client secret of the [Financial Connections Session](https://stripe.com/docs/api/financial_connections/session).
|
|
7
26
|
*/
|
|
8
27
|
clientSecret: string;
|
|
28
|
+
|
|
29
|
+
preCollectedConsent?: PreCollectedConsent;
|
|
9
30
|
}
|
|
10
31
|
|
|
11
32
|
/**
|
|
@@ -16,4 +37,6 @@ export interface CollectBankAccountTokenOptions {
|
|
|
16
37
|
* The client secret of the [Financial Connections Session](https://stripe.com/docs/api/financial_connections/session).
|
|
17
38
|
*/
|
|
18
39
|
clientSecret: string;
|
|
40
|
+
|
|
41
|
+
preCollectedConsent?: PreCollectedConsent;
|
|
19
42
|
}
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requires beta access:
|
|
3
|
+
* Contact [Stripe support](https://support.stripe.com/) for more information.
|
|
4
|
+
*
|
|
5
|
+
* Evidence is subject to server-side eligibility and validation. Providing it
|
|
6
|
+
* does not guarantee that Stripe.js will omit its consent pane.
|
|
7
|
+
*/
|
|
8
|
+
export interface PreCollectedConsent {
|
|
9
|
+
/**
|
|
10
|
+
* ID of a financial_connections.consent object returned by the merchant's server.
|
|
11
|
+
*/
|
|
12
|
+
consent: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Unix timestamp in seconds when the customer affirmatively accepted the complete consent text.
|
|
16
|
+
*/
|
|
17
|
+
collectedAt: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
1
20
|
/**
|
|
2
21
|
* Data to be sent with a `stripe.collectFinancialConnectionsAccounts` request.
|
|
3
22
|
*/
|
|
@@ -6,6 +25,8 @@ export interface CollectFinancialConnectionsAccountsOptions {
|
|
|
6
25
|
* The client secret of the [Financial Connections Session](https://stripe.com/docs/api/financial_connections/session).
|
|
7
26
|
*/
|
|
8
27
|
clientSecret: string;
|
|
28
|
+
|
|
29
|
+
preCollectedConsent?: PreCollectedConsent;
|
|
9
30
|
}
|
|
10
31
|
|
|
11
32
|
/**
|
|
@@ -16,4 +37,6 @@ export interface CollectBankAccountTokenOptions {
|
|
|
16
37
|
* The client secret of the [Financial Connections Session](https://stripe.com/docs/api/financial_connections/session).
|
|
17
38
|
*/
|
|
18
39
|
clientSecret: string;
|
|
40
|
+
|
|
41
|
+
preCollectedConsent?: PreCollectedConsent;
|
|
19
42
|
}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
StripeAuBankAccountElement,
|
|
7
7
|
} from './elements';
|
|
8
8
|
import {PaymentMethodCreateParams, PaymentIntentConfirmParams} from '../api';
|
|
9
|
+
import {PreCollectedConsent} from './financial-connections';
|
|
9
10
|
import {Omit} from '../utils';
|
|
10
11
|
|
|
11
12
|
export type CreatePaymentMethodData =
|
|
@@ -1638,6 +1639,8 @@ export interface CollectBankAccountForPaymentOptions {
|
|
|
1638
1639
|
*/
|
|
1639
1640
|
clientSecret: string;
|
|
1640
1641
|
|
|
1642
|
+
preCollectedConsent?: PreCollectedConsent;
|
|
1643
|
+
|
|
1641
1644
|
params: CollectBankAccountParams;
|
|
1642
1645
|
|
|
1643
1646
|
/**
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
StripeAuBankAccountElement,
|
|
7
7
|
} from './elements';
|
|
8
8
|
import {PaymentMethodCreateParams, PaymentIntentConfirmParams} from '../api';
|
|
9
|
+
import {PreCollectedConsent} from './financial-connections';
|
|
9
10
|
import {Omit} from '../utils';
|
|
10
11
|
|
|
11
12
|
export type CreatePaymentMethodData =
|
|
@@ -1638,6 +1639,8 @@ export interface CollectBankAccountForPaymentOptions {
|
|
|
1638
1639
|
*/
|
|
1639
1640
|
clientSecret: string;
|
|
1640
1641
|
|
|
1642
|
+
preCollectedConsent?: PreCollectedConsent;
|
|
1643
|
+
|
|
1641
1644
|
params: CollectBankAccountParams;
|
|
1642
1645
|
|
|
1643
1646
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {PaymentMethodCreateParams, SetupIntentConfirmParams} from '../api';
|
|
2
|
+
import {PreCollectedConsent} from './financial-connections';
|
|
2
3
|
|
|
3
4
|
import {
|
|
4
5
|
CreatePaymentMethodAcssDebitData,
|
|
@@ -323,6 +324,8 @@ export interface CollectBankAccountForSetupOptions {
|
|
|
323
324
|
*/
|
|
324
325
|
clientSecret: string;
|
|
325
326
|
|
|
327
|
+
preCollectedConsent?: PreCollectedConsent;
|
|
328
|
+
|
|
326
329
|
params: CollectBankAccountParams;
|
|
327
330
|
|
|
328
331
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {PaymentMethodCreateParams, SetupIntentConfirmParams} from '../api';
|
|
2
|
+
import {PreCollectedConsent} from './financial-connections';
|
|
2
3
|
|
|
3
4
|
import {
|
|
4
5
|
CreatePaymentMethodAcssDebitData,
|
|
@@ -323,6 +324,8 @@ export interface CollectBankAccountForSetupOptions {
|
|
|
323
324
|
*/
|
|
324
325
|
clientSecret: string;
|
|
325
326
|
|
|
327
|
+
preCollectedConsent?: PreCollectedConsent;
|
|
328
|
+
|
|
326
329
|
params: CollectBankAccountParams;
|
|
327
330
|
|
|
328
331
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/stripe-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-rc.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":
|
|
11
|
+
"releaseCandidate": true,
|
|
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",
|
package/src/shared.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface LoadParams {
|
|
|
12
12
|
// containing the package.json version
|
|
13
13
|
declare const _VERSION: string;
|
|
14
14
|
|
|
15
|
-
export const RELEASE_TRAIN: ReleaseTrain = '
|
|
15
|
+
export const RELEASE_TRAIN: ReleaseTrain = 'endive';
|
|
16
16
|
|
|
17
17
|
const runtimeVersionToUrlVersion = (version: string | number) =>
|
|
18
18
|
version === 3 ? 'v3' : version;
|