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.
index.d.ts
// Type definitions for Stripe Checkout 1.0
// Project: https://stripe.com/checkout, https://github.com/matthewmueller/stripe-checkout
// Definitions by: Chris Wrench <https://github.com/cgwrench>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="stripe-v3"/>
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
- Last updated: Fri, 02 Jul 2021 22:33:03 GMT
- Dependencies: @types/stripe-v3
- Global values:
StripeCheckout
Credits
These definitions were written by Chris Wrench.