From 4cc8fe0ba504027721db6a86b8478654f9d49509 Mon Sep 17 00:00:00 2001 From: Harry Date: Fri, 15 Sep 2017 10:41:20 +0100 Subject: [PATCH] Update parameter for token callback Stripe checkout actually provides a full `StripeCardTokenResponse` as the callback argument as per the docs for the `token` object: https://stripe.com/docs/api#token_object --- types/stripe-checkout/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/stripe-checkout/index.d.ts b/types/stripe-checkout/index.d.ts index 601559ee82..c84fdeeb1d 100644 --- a/types/stripe-checkout/index.d.ts +++ b/types/stripe-checkout/index.d.ts @@ -16,7 +16,7 @@ interface StripeCheckoutHandler { interface StripeCheckoutOptions { key?: string; - token?(token: stripe.StripeTokenResponse): void; + token?(token: stripe.StripeCardTokenResponse): void; image?: string; name?: string; description?: string;