solid-stripe
Stripe Elements for SolidJS
Solid components for Stripe.js and Stripe Elements. Every example runs in Stripe test mode, logs element events as they fire, and shows its own source so you can copy it.
npm install @stripe/stripe-js solid-stripePayments
Payment Element
One element for cards, wallets, and local payment methods, with the PaymentIntent created only at submit. Change the quantity, theme, or layout and the mounted elements update in place. Link autofill comes from LinkAuthenticationElement and address autocomplete from AddressElement.
- Elements
- PaymentElement
- LinkAuthenticationElement
- AddressElement
Express Checkout Element
One-click wallet buttons such as Apple Pay, Google Pay, and Link. Buttons appear only for wallets that both your browser and the Stripe account support, and Apple Pay also needs a verified domain.
- Elements
- ExpressCheckoutElement
Payment Method Messaging
Buy now, pay later messaging from Klarna, Afterpay, and Affirm next to a price. Pick a price and the message updates for the new amount.
- Elements
- PaymentMethodMessagingElement
Checkout Sessions
Checkout Elements
A custom checkout page on a Checkout Session. The order summary, quantity, and promotion code all read from and write to the session through useCheckoutElements.
- CheckoutElementsProvider
- useCheckoutElements
- PaymentElement
- BillingAddressElement
Embedded Checkout
The prebuilt Stripe Checkout page, embedded in your app from a Checkout Session.
- EmbeddedCheckoutProvider
- EmbeddedCheckout
Legacy Elements
Card Element
Separate card number, expiry, and CVC fields you lay out like the rest of your form, confirmed with confirmCardPayment.
- Elements
- CardNumberElement
- CardExpiryElement
- CardCvcElement
IBAN Element
Collect an IBAN and confirm a euro SEPA Direct Debit with confirmSepaDebitPayment.
- Elements
- IbanElement