@stripe/stripe-js 2.1.5 → 2.1.7
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/pure.esm.js
CHANGED
package/dist/pure.js
CHANGED
package/dist/stripe.esm.js
CHANGED
package/dist/stripe.js
CHANGED
package/package.json
CHANGED
|
@@ -617,6 +617,18 @@ export type StripeElementLocale =
|
|
|
617
617
|
| 'zh-HK'
|
|
618
618
|
| 'zh-TW';
|
|
619
619
|
|
|
620
|
+
type PaymentMethodOptions = {
|
|
621
|
+
card?: {require_cvc_recollection?: boolean};
|
|
622
|
+
us_bank_account?: {
|
|
623
|
+
financial_connections?: {
|
|
624
|
+
permissions?: Array<
|
|
625
|
+
'balances' | 'ownership' | 'payment_method' | 'transactions'
|
|
626
|
+
>;
|
|
627
|
+
};
|
|
628
|
+
verification_method?: 'automatic' | 'instant';
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
|
|
620
632
|
/**
|
|
621
633
|
* Options to create an `Elements` instance with.
|
|
622
634
|
*/
|
|
@@ -771,6 +783,20 @@ export interface StripeElementsOptionsMode extends BaseStripeElementsOptions {
|
|
|
771
783
|
*/
|
|
772
784
|
payment_method_creation?: 'manual';
|
|
773
785
|
|
|
786
|
+
/**
|
|
787
|
+
* Additional payment-method-specific options for configuring Payment Element behavior.
|
|
788
|
+
*
|
|
789
|
+
* @docs https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-paymentMethodOptions
|
|
790
|
+
*/
|
|
791
|
+
paymentMethodOptions?: PaymentMethodOptions;
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Additional payment-method-specific options for configuring Payment Element behavior.
|
|
795
|
+
*
|
|
796
|
+
* @docs https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-paymentMethodOptions
|
|
797
|
+
*/
|
|
798
|
+
payment_method_options?: PaymentMethodOptions;
|
|
799
|
+
|
|
774
800
|
/**
|
|
775
801
|
* Either use mode or clientSecret when creating an Elements group
|
|
776
802
|
*/
|
|
@@ -1424,6 +1424,13 @@ export interface ConfirmPaymentData extends PaymentIntentConfirmParams {
|
|
|
1424
1424
|
billing_details?: PaymentMethodCreateParams.BillingDetails;
|
|
1425
1425
|
};
|
|
1426
1426
|
|
|
1427
|
+
/**
|
|
1428
|
+
* Optional `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods).
|
|
1429
|
+
*
|
|
1430
|
+
* @docs https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method
|
|
1431
|
+
*/
|
|
1432
|
+
payment_method?: string;
|
|
1433
|
+
|
|
1427
1434
|
/**
|
|
1428
1435
|
* Specifies which fields in the response should be expanded.
|
|
1429
1436
|
*/
|