bennypowers / stripe-elements

Custom Element Wrapper for Stripe.js v3 Elements
https://stripe-elements.netlify.app/
79 stars 20 forks source link
custom-elements customelements hacktoberfest lit-element stripe stripe-element stripe-form web-component webcomponents

Am Yisrael Chai - ืขื ื™ืฉืจืืœ ื—ื™

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