Skip to content

Polymer 2 wrapper for the Paypal Express Checkout button

License

Notifications You must be signed in to change notification settings

morbidick/paypal-express-checkout

Repository files navigation

Polymer 2 wrapper for the Paypal Express Checkout button

Published on webcomponents.org

Button flow demo

Components

<paypal-button-express>

To work around paypals issue with ShadowDOM this element opens the paypal button in an embedded iframe and communicates via postMessage.

<paypal-button-express
  sandbox
  sandbox-id="my-id"
  amount="1.00"
  reference="your-payment-reference"
></paypal-button-express>

<paypal-button-form>

Using the (older) paypal form api, a robuster checkout can be accomplished. To get notified about payments you have to set notify to an IPN url on your site.

<paypal-button-form
  paypal-id="[email protected]"
  amount="1.00"
  reference="your-payment-reference"
></paypal-button-form>

Polymer build

To build include the paypal.html in your polymer.json.

"extraDependencies": [
  "bower_components/paypal-express-checkout/paypal.html"
]

Development

# Get dependencies
$ npm install

# Demo site
$ npm start

# Run tests
$ npm test

About

Polymer 2 wrapper for the Paypal Express Checkout button

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages