https://github.com/morbidick/paypal-express-checkout
Polymer 2 wrapper for the Paypal Express Checkout button
https://github.com/morbidick/paypal-express-checkout
Last synced: 3 months ago
JSON representation
Polymer 2 wrapper for the Paypal Express Checkout button
- Host: GitHub
- URL: https://github.com/morbidick/paypal-express-checkout
- Owner: morbidick
- License: mit
- Created: 2017-09-12T16:16:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-30T21:40:28.000Z (almost 7 years ago)
- Last Synced: 2025-01-22T21:43:23.530Z (5 months ago)
- Language: HTML
- Size: 3.41 MB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Polymer 2 wrapper for the Paypal Express Checkout button
[](https://www.webcomponents.org/element/morbidick/paypal-express-checkout)

## Components
### \
To work around [paypals issue with ShadowDOM](https://github.com/paypal/paypal-checkout/issues/353) this element opens the paypal button in an embedded iframe and communicates via `postMessage`.
````html
````
### \
Using the (older) [paypal form api](https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/formbasics/), a robuster checkout can be accomplished. To get notified about payments you have to set `notify` to an [IPN](https://developer.paypal.com/docs/classic/products/instant-payment-notification/) url on your site.
````html
````
## Polymer build
To build include the paypal.html in your `polymer.json`.
```json
"extraDependencies": [
"bower_components/paypal-express-checkout/paypal.html"
]
```## Development
```bash
# Get dependencies
$ npm install# Demo site
$ npm start# Run tests
$ npm test
```