Stripe Elements Web Components
🛡⚛️🔰 Any Framework - One Stripe Integration. 💰💵💸
👨🎨 Live Demo 👀
🚚 Installation
You should make sure to load stripe.js on your app's index.html, as per Stripe's recommendation, before loading <stripe-elements>
. If window.Stripe
is not available when you load up the component, it will fail with a reasonably-polite console warning.
<script src="https://js.stripe.com/v3/"></script>
npm i -S @power-elements/stripe-elements
<stripe-elements>
is a community project.
📚 API Docs
Learn how to use Stripe Elements web components in the docs
3.0.0 (2022-02-15)
Bug Fixes
BREAKING CHANGES
- migrate to stripe npm, with
window.Stripe
fallback
remove ShadyDOM support
remove ReadOnlyMixin
and LitNotifyMixin
in favour of decorators
- private
setReadonlyProperties
removed
move breadcrumb code to a controller.
remove deprecated properties
isComplete
=> `completeisEmpty
=> empty
card
=> element
stripeReady
=> ready
hasError
=> error
remove deprecated events
stripe-ready
=> ready
stripe-error
=> error
stripe-payment-method
=> payment-method
stripe-source
=> source
stripe-token
=> token