@types/stripe-checkout
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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

/// <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

Credits

These definitions were written by Chris Wrench.

/@types/stripe-checkout/

    Package Sidebar

    Install

    npm i @types/stripe-checkout

    Weekly Downloads

    5,236

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    4.81 kB

    Total Files

    5

    Last publish

    Collaborators

    • types