Skip to content

Commit

Permalink
Merge pull request #4 from morbidick/polymer2
Browse files Browse the repository at this point in the history
Polymer 2
  • Loading branch information
bennypowers authored Sep 12, 2017
2 parents 0f1c496 + 7d556df commit 49070a3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 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
8 changes: 4 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
"description": "Polymer wrapper for Stripe.js v3 Elements",
"main": "stripe-elements.html",
"dependencies": {
"polymer": "Polymer/polymer#^1.4.0",
"polymer": "Polymer/polymer#1.9 - 2",
"paper-toast": "PolymerElements/paper-toast#^2.0.0"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0",
"web-component-tester": "^6.0.0-prerelease.5",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "^6.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0",
"paper-input": "PolymerElements/paper-input#^2.0.0",
"show-json": "ryanburns23/show-json#^1.0.1"
},
"resolutions": {
"webcomponentsjs": "^0.7.0"
"webcomponentsjs": "^1.0.0"
}
}

0 comments on commit 49070a3

Please sign in to comment.