Update stripe.d.ts

Edited definition file to align with: https://stripe.com/docs/stripe.js#createToken
This commit is contained in:
ianschmitz
2014-12-10 16:57:40 -08:00
parent 1fb0d8c3e3
commit 7f3c985d43
+2 -2
View File
@@ -5,7 +5,6 @@
interface StripeStatic {
setPublishableKey(key: string);
createToken(data: StripeTokenData, responseHandler: (status: number, response: StripeTokenResponse) => void);
validateCardNumber(cardNumber: string): boolean;
validateExpiry(month: string, year: string): boolean;
validateCVC(cardCVC: string): boolean;
@@ -57,6 +56,7 @@ interface StripeCardData {
address_state?: string;
address_zip?: string;
address_country?: string;
createToken(data: StripeTokenData, responseHandler: (status: number, response: StripeTokenResponse) => void);
}
declare var Stripe: StripeStatic;
declare var Stripe: StripeStatic;