Skip to content

Commit

Permalink
Add readme section for polymer 2
Browse files Browse the repository at this point in the history
This addresses the shadow dom issues mentioned in #2 and #3.
  • Loading branch information
morbidick authored Sep 12, 2017
1 parent d236059 commit 7d556df
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@

Polymer wrapper for Stripe.js v3 Elements. Creates a `card` element such as https://stripe.com/docs/elements

## :fire: Restrictions :fire:

The stripe script doesn't work with ShadowDOM, so for now we have to force the ShadyDOM polyfill. Modify your webcomponentsjs include to match the following.

```html
<script>
window.customElements = window.customElements || {};
window.customElements.forcePolyfill = true;
window.ShadyDOM = {force: true};
</script>
<script src="/bower_components/webcomponentsjs/webcomponents-loader.js"></script>
```

## Usage
<!--
```
Expand Down

0 comments on commit 7d556df

Please sign in to comment.