1.0.7 • Published 6 months ago

@types/stripe-checkout v1.0.7

Weekly downloads
3,021
License
MIT
Repository
github
Last release
6 months ago

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.

1.0.7

6 months ago

1.0.6

7 months ago

1.0.5

8 months ago

1.0.4

3 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.29

7 years ago

0.0.28

8 years ago

0.0.27

8 years ago

0.0.26

8 years ago

0.0.25-alpha

8 years ago

0.0.24-alpha

8 years ago

0.0.23-alpha

8 years ago

0.0.22-alpha

8 years ago

0.0.21-alpha

8 years ago

0.0.20-alpha

8 years ago

0.0.19-alpha

8 years ago

0.0.14-alpha

8 years ago

0.0.13-alpha

8 years ago