Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshnuss/svelte-stripe

Everything you need to add Stripe Elements to your Svelte project
https://github.com/joshnuss/svelte-stripe

apple-pay credit-card google-pay ideal payment sepa stripe svelte svelte-kit

Last synced: 4 days ago
JSON representation

Everything you need to add Stripe Elements to your Svelte project

Awesome Lists containing this project

README

        

# [svelte-stripe](https://sveltestripe.com)

Everything you need to add Stripe Elements to your Svelte project. 100% [SvelteKit](https://kit.svelte.dev/) compatible.

> Stripe is now [sponsoring this project](#sponsors)

[Documentation](https://sveltestripe.com)

## Components

The following components are provided:

- ``: A wrapper component to set context.
- ``: Input field for the card's number.
- ``: Input field for the card's expiration date.
- ``: Input field for Card Verification Value.
- ``: All-in-one component that has inputs for card number, expiry, cvc, and zip code.
- ``: A GooglePay, ApplePay, or Link checkout button, depending on browser and user preferences.
- ``: Input field for IBAN (International bank account number).
- ``: Input field for iDEAL (payment system used in the Netherlands).
- ``: All-in-one component that allows the user to choose the type of payment.
- ``: Pay with a wallet without leaving the page.
- ``: Ability to use saved payment methods stored in [Link](https://link.co).
- `

`: Component for collecting billing and shipping addresses.

## Examples

There is example code for:

- [Payment Element](src/routes/examples/payment-element)
- [Express Checkout](src/routes/examples/express-checkout)
- [Embedded Checkout](src/routes/examples/embedded-checkout)
- [Link](src/routes/examples/payment-element)
- [Credit card](src/routes/examples/credit-card)
- [GooglePay](src/routes/examples/payment-request)
- [ApplePay](src/routes/examples/payment-request)
- [MicrosoftPay](src/routes/examples/payment-request)
- [SEPA direct deposit](src/routes/examples/sepa)
- [iDEAL](src/routes/examples/ideal)
- [Alipay](src/routes/examples/alipay)
- [WeChat Pay](src/routes/examples/wechat-pay)
- [Konbini](src/routes/examples/konbini)
- [Klarna](src/routes/examples/klarna)
- [Sofort](src/routes/examples/sofort)
- [Afterpay/Clearpay](src/routes/examples/afterpay-clearpay)
- [PaymentMethodMessaging](src/routes/examples/payment-method-messaging)

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

## Usage

See [documentation](https://sveltestripe.com) for setup instructions and examples.

## Sponsors


Stripe's logo

## Code contributors

![GitHub Contributors Image](https://contrib.rocks/image?repo=joshnuss/svelte-stripe)

## Development mode

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

```bash
pnpm dev
```

## License

MIT