Documentation
    • Back to home
    • StripeKit
    • Installation
    • Getting Started
    • Choosing a Mode
    • Type Reference
    • Setup
      • Configuration
      • Timezones
      • Storage Adapter
      • Money and Currency
      • Error Handling
    • Stripe
      • Elements
    • Modules
      • Overview
      • Customers
        • Overview
        • List
        • Retrieve
        • Find or Create by Email
        • Create
        • Update
        • Sync
        • Delete
      • Payment Methods
        • Overview
        • Create Setup Intent
        • List
        • Attach
        • Detach
        • Set Default
        • Sync
      • Payments
        • Overview
        • Pay With Saved Method
        • Create
        • Retrieve
        • Confirm
        • Cancel
        • Sync
      • Checkout
        • Overview
        • Get
        • Create
        • Submit Fields
        • Apply Coupon
        • Mark Complete
      • Subscriptions
        • Overview
        • Create
        • Retrieve
        • Cancel
        • Resume
        • Toggle Collection Method
        • Update Fields
        • Apply Promotion Code
        • List By Customer
        • Find By Metadata
        • Sync
      • Invoices
        • Overview
        • Retrieve
        • List By Customer
        • List By Subscription
        • Pay With Saved Method
        • Void
        • Finalize
        • Sync
      • Coupons
        • Overview
        • Create
        • Validate
        • Apply To Subscription
        • List
        • Deactivate
      • Webhooks
        • Overview
        • Process
        • Events Reference
      • Sync
        • Overview

    Type Reference

    TypeScript has interfaces for plain data, so StripeKit represents every input and result as a documented interface, the same approach the Stripe SDK itself uses internally. This page lists the shape of every object you will send to, or receive from, StripeKit.

    Config (StripeKit.init())#

    Customers#

    CreateCustomerInput
    KitCustomerRecord, returned by create, retrieve, update, sync

    Payment methods#

    KitPaymentMethodRecord

    Payments#

    CreatePaymentInput
    PaymentResult

    Checkout#

    CreateCheckoutInput
    CheckoutResult

    Subscriptions#

    CreateSubscriptionInput
    KitSubscriptionRecord

    Invoices#

    KitInvoiceRecord

    Coupons#

    CreateCouponInput
    KitCouponRecord

    Webhooks#

    kit.webhooks.process() accepts:
    Available handler keys: onPaymentSucceeded, onPaymentFailed, onInvoiceCreated, onInvoiceUpdated, onInvoicePaid, onInvoicePaymentFailed, onInvoiceVoided, onInvoiceDeleted, onSubscriptionCreated, onSubscriptionUpdated, onSubscriptionDeleted, onSetupIntentSucceeded, onCheckoutSessionCompleted, onUnhandledEvent. Each handler receives (event: Stripe.Event).

    Storage adapter#

    See Storage adapter and src/types/storage.ts. It is an interface that you implement; only override the methods your application actually uses; everything else safely no-ops.
    Previous
    Choosing a Mode
    Next
    Configuration
    Built with