An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Polymer 2 wrapper for the Paypal Express Checkout button

[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/morbidick/paypal-express-checkout)

![Button flow demo](demo/flow.gif)

## 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
```