svelte-stripe
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Everything you need to add Stripe Elements to your Svelte project. 100% SvelteKit compatible.

Stripe is now sponsoring this project

Documentation

Components

The following components are provided:

  • <Elements/>: A wrapper component to set context.
  • <CardNumber/>: Input field for the card's number.
  • <CardExpiry/>: Input field for the card's expiration date.
  • <CardCvc/>: Input field for Card Verification Value.
  • <Card/>: All-in-one component that has inputs for card number, expiry, cvc, and zip code.
  • <PaymentRequestButton/>: A GooglePay, ApplePay, or Link checkout button, depending on browser and user preferences.
  • <Iban/>: Input field for IBAN (International bank account number).
  • <Ideal/>: Input field for iDEAL (payment system used in the Netherlands).
  • <PaymentElement/>: All-in-one component that allows the user to choose the type of payment.
  • <ExpressCheckout/>: Pay with a wallet without leaving the page.
  • <LinkAuthenticationElement/>: Ability to use saved payment methods stored in Link.
  • <Address/>: Component for collecting billing and shipping addresses.

Examples

There is example code for:

Please open a PR or issue, if you'd like to add more.

Usage

See documentation for setup instructions and examples.

Sponsors

Stripe's logo

Code contributors

GitHub Contributors Image

Development mode

Run pnpm dev and visit https://localhost:5173:

pnpm dev

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.02,398latest

Version History

VersionDownloads (Last 7 Days)Published
1.3.02,398
1.2.1203
1.2.0348
1.1.780
1.1.60
1.1.51
1.1.4644
1.1.344
1.1.20
1.1.10
1.1.00
1.0.00
0.0.2563
0.0.2419
0.0.230
0.0.22223
0.0.2118
0.0.200
0.0.1914
0.0.180
0.0.172
0.0.161
0.0.150
0.0.141
0.0.130

Package Sidebar

Install

npm i svelte-stripe

Weekly Downloads

741

Version

1.3.0

License

MIT

Unpacked Size

73.8 kB

Total Files

38

Last publish

Collaborators

  • joshnuss