1.0.7 • Published 2 years ago

@types/stripe-checkout v1.0.7

Weekly downloads
3,021
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

4 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.29

8 years ago

0.0.28

9 years ago

0.0.27

9 years ago

0.0.26

9 years ago

0.0.25-alpha

9 years ago

0.0.24-alpha

9 years ago

0.0.23-alpha

9 years ago

0.0.22-alpha

9 years ago

0.0.21-alpha

9 years ago

0.0.20-alpha

9 years ago

0.0.19-alpha

9 years ago

0.0.14-alpha

9 years ago

0.0.13-alpha

9 years ago