mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Update stripe.d.ts
Edited definition file to align with: https://stripe.com/docs/stripe.js#createToken
This commit is contained in:
1 parent
1fb0d8c3e3
commit
7f3c985d43
1 file changed
+2
-2
Vendored
+2
-2
@@ -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;
|
||||
Reference in new issue
Block a user