From 480772811f07f2f7bf6cc50b0ef517d0c67aeb15 Mon Sep 17 00:00:00 2001 From: amritk Date: Fri, 25 Sep 2015 17:45:12 -0700 Subject: [PATCH 1/2] Added locale to StripeCheckoutOptions --- stripe-checkout/stripe-checkout.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stripe-checkout/stripe-checkout.d.ts b/stripe-checkout/stripe-checkout.d.ts index f648a1bb3..6031172aa 100644 --- a/stripe-checkout/stripe-checkout.d.ts +++ b/stripe-checkout/stripe-checkout.d.ts @@ -21,6 +21,7 @@ interface StripeCheckoutOptions { name?: string; description?: string; amount?: number; + locale?: string; currency?: string; panelLabel?: string; zipCode?: boolean; @@ -32,4 +33,4 @@ interface StripeCheckoutOptions { closed?: () => void; } -declare var StripeCheckout: StripeCheckoutStatic; \ No newline at end of file +declare var StripeCheckout: StripeCheckoutStatic; From 1204530cb67f221cfc75229ea0d7455ce5a50470 Mon Sep 17 00:00:00 2001 From: amritk Date: Fri, 25 Sep 2015 17:57:57 -0700 Subject: [PATCH 2/2] Made key and token optional The parameters key and token must be optional if using the same options interface for both configure and open. You will only want to set the key and token in configure, no need to set it again in open. --- stripe-checkout/stripe-checkout.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stripe-checkout/stripe-checkout.d.ts b/stripe-checkout/stripe-checkout.d.ts index 6031172aa..8be22cab1 100644 --- a/stripe-checkout/stripe-checkout.d.ts +++ b/stripe-checkout/stripe-checkout.d.ts @@ -15,8 +15,8 @@ interface StripeCheckoutHandler { } interface StripeCheckoutOptions { - key: string; - token: (token: StripeTokenResponse) => void; + key?: string; + token?: (token: StripeTokenResponse) => void; image?: string; name?: string; description?: string;