@power-elements/stripe-elements

Web Component wrapper for stripe elements

Usage no npm install needed!

<script type="module">
  import powerElementsStripeElements from 'https://cdn.skypack.dev/@power-elements/stripe-elements';
</script>

README

Stripe Elements Web Components

๐Ÿ›กโš›๏ธ๐Ÿ”ฐ Any Framework - One Stripe Integration. ๐Ÿ’ฐ๐Ÿ’ต๐Ÿ’ธ

Published on npm Published on webcomponents.org made with open-wc Maintainability Test Coverage Release Contact me on Codementor

๐Ÿ‘จโ€๐ŸŽจ 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