Installation
npm install --save @types/stripe-checkout
Summary
This package contains type definitions for stripe-checkout (https://stripe.com/checkout).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stripe-checkout.
interface StripeCheckoutStatic {
configure(options: StripeCheckoutOptions): StripeCheckoutHandler;
}
interface StripeCheckoutHandler {
open(options?: StripeCheckoutOptions): void;
close(): void;
}
interface StripeCheckoutOptions {
key?: string | undefined;
token?(token: stripe.Token): void;
source?(source: stripe.Source): void;
image?: string | undefined;
name?: string | undefined;
description?: string | undefined;
amount?: number | undefined;
locale?: string | undefined;
currency?: string | undefined;
panelLabel?: string | undefined;
zipCode?: boolean | undefined;
billingAddress?: boolean | undefined;
email?: string | undefined;
shippingAddress?: boolean | undefined;
label?: string | undefined;
allowRememberMe?: boolean | undefined;
bitcoin?: boolean | undefined;
alipay?: boolean | "auto" | undefined;
alipayReusable?: boolean | undefined;
opened?(): void;
closed?(): void;
}
declare var StripeCheckout: StripeCheckoutStatic;
Additional Details
Credits
These definitions were written by Chris Wrench.