🤖 Merge PR #65834 stripe-v3: Add disableLink by @qqilihq

* stripe-v3: Add disableLink

* Add test

* Update types/stripe-v3/stripe-v3-tests.ts

Co-authored-by: Marko Kaznovac <kaznovac@users.noreply.github.com>

---------

Co-authored-by: Marko Kaznovac <kaznovac@users.noreply.github.com>
This commit is contained in:
Philipp Katz
2023-06-21 00:04:23 +02:00
committed by GitHub
parent 0936c9a2aa
commit 046fa6ae5e
2 changed files with 3 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
// Kohei Matsubara <https://github.com/matsuby>
// Marko Kaznovac <https://github.com/kaznovac>
// Hartley Robertson <https://github.com/hartleyrobertson>
// Philipp Katz <https://github.com/qqilihq>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare var Stripe: stripe.StripeStatic;
@@ -1024,6 +1025,7 @@ declare namespace stripe {
paymentRequest?: paymentRequest.StripePaymentRequest | undefined;
supportedCountries?: string[] | undefined;
disabled?: boolean | undefined;
disableLink?: boolean | undefined;
}
interface Style extends StyleOptions {

View File

@@ -42,6 +42,7 @@ describe("Stripe elements", () => {
value: {
postalCode: '94110',
},
disableLink: true,
});
card.mount(document.createElement('div'));
card.on('ready', () => {