forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stripe-checkout.d.ts
36 lines (31 loc) · 945 Bytes
/
stripe-checkout.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Type definitions for Stripe Checkout
// Project: https://stripe.com/checkout
// Definitions by: Chris Wrench <https://github.com/cgwrench>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../stripe/stripe.d.ts"/>
interface StripeCheckoutStatic {
configure(options: StripeCheckoutOptions): StripeCheckoutHandler;
}
interface StripeCheckoutHandler {
open(options?: StripeCheckoutOptions): void;
close(): void;
}
interface StripeCheckoutOptions {
key?: string;
token?: (token: StripeTokenResponse) => void;
image?: string;
name?: string;
description?: string;
amount?: number;
locale?: string;
currency?: string;
panelLabel?: string;
zipCode?: boolean;
email?: string;
label?: string;
allowRememberMe?: boolean;
bitcoin?: boolean;
opened?: () => void;
closed?: () => void;
}
declare var StripeCheckout: StripeCheckoutStatic;