1.3.0 • Published 12 months ago
svelte-stripe v1.3.0
svelte-stripe
Everything you need to add Stripe Elements to your Svelte project. 100% SvelteKit compatible.
Stripe is now sponsoring this project
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:
- Payment Element
- Express Checkout
- Embedded Checkout
- Link
- Credit card
- GooglePay
- ApplePay
- MicrosoftPay
- SEPA direct deposit
- iDEAL
- Alipay
- WeChat Pay
- Konbini
- Klarna
- Sofort
- Afterpay/Clearpay
- PaymentMethodMessaging
Please open a PR or issue, if you'd like to add more.
Usage
See documentation for setup instructions and examples.
Sponsors
Code contributors
Development mode
Run pnpm dev and visit https://localhost:5173:
pnpm devLicense
MIT
1.3.0
12 months ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago
0.0.25
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
0.0.23
2 years ago
0.0.24
2 years ago
0.0.22
3 years ago
0.0.20
3 years ago
0.0.21
3 years ago
0.0.18
3 years ago
0.0.19
3 years ago
0.0.14
4 years ago
0.0.15
4 years ago
0.0.16
4 years ago
0.0.17
4 years ago
0.0.13
4 years ago