Skip to content

Hammadus/svelte-stripe

 
 

Repository files navigation

Everything you need to add Stripe to your Svelte project. 100% svelte-kit compatible.

Stripe is now sponsoring this project

Documentation

Components

This package provides the following components:

  • <Container/>: 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 or ApplePay button, depending on browser.
  • <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.

Supported payment types

  • Credit card
  • GooglePay
  • ApplePay
  • SEPA direct deposit
  • iDEAL

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

License

MIT

About

Everything you need to add Stripe to your Svelte project

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 71.3%
  • JavaScript 16.1%
  • CSS 11.2%
  • HTML 1.4%