@stripe/stripe-js 1.54.1 → 2.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/README.md +6 -0
- package/dist/pure.esm.js +1 -1
- package/dist/pure.js +1 -1
- package/dist/stripe.esm.js +1 -1
- package/dist/stripe.js +1 -1
- package/package.json +1 -1
- package/types/stripe-js/elements/payment.d.ts +5 -1
- package/types/stripe-js/elements-group.d.ts +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,12 @@ you must load Stripe.js directly from `https://js.stripe.com`. You cannot
|
|
|
8
8
|
include it in a bundle or host it yourself. This package wraps the global
|
|
9
9
|
`Stripe` function provided by the Stripe.js script as an ES module.
|
|
10
10
|
|
|
11
|
+
Calling `loadStripe` always loads the latest version of Stripe.js, regardless of
|
|
12
|
+
which version of `@stripe/stripe-js` you use. Updates for this package only
|
|
13
|
+
impact tooling around the `loadStripe` helper itself and the TypeScript type
|
|
14
|
+
definitions provided for Stripe.js. Updates do not affect runtime availability
|
|
15
|
+
of features of Stripe.js.
|
|
16
|
+
|
|
11
17
|
[](https://www.npmjs.com/package/@stripe/stripe-js)
|
|
12
18
|
|
|
13
19
|
## Installation
|
package/dist/pure.esm.js
CHANGED
package/dist/pure.js
CHANGED
package/dist/stripe.esm.js
CHANGED
package/dist/stripe.js
CHANGED
package/package.json
CHANGED
|
@@ -167,12 +167,16 @@ export interface FieldsOption {
|
|
|
167
167
|
export type TermOption = 'auto' | 'always' | 'never';
|
|
168
168
|
|
|
169
169
|
export interface TermsOption {
|
|
170
|
+
applePay?: TermOption;
|
|
171
|
+
auBecsDebit?: TermOption;
|
|
170
172
|
bancontact?: TermOption;
|
|
171
173
|
card?: TermOption;
|
|
174
|
+
cashapp?: TermOption;
|
|
175
|
+
googlePay?: TermOption;
|
|
172
176
|
ideal?: TermOption;
|
|
177
|
+
paypal?: TermOption;
|
|
173
178
|
sepaDebit?: TermOption;
|
|
174
179
|
sofort?: TermOption;
|
|
175
|
-
auBecsDebit?: TermOption;
|
|
176
180
|
usBankAccount?: TermOption;
|
|
177
181
|
}
|
|
178
182
|
|