Skip to content

Latest commit

 

History

History
65 lines (52 loc) · 1.52 KB

README.md

File metadata and controls

65 lines (52 loc) · 1.52 KB

React Payment Request



Build Status Greenkeeper badge styled with prettier

A React component wrapper for the awesome Payment Request API.

Install

yarn add react-payment-request
import PaymentRequest from 'react-payment-request'

const Pay = () =>
  <button>
    <PaymentRequest
      total="50"
      displayItems={[
        {
          label: "Promo code",
          amount: {
            currency: 'USD',
            value: 32,
          }
        },
        {
          label: "Taxes",
          amount: {
            currency: 'USD',
            value: 18
          }
        }
      ]}
      onSuccess={(data) => console.log(data)}>
      Push Me
     </PaymentRequest>
  <button>

Resources

Run

yarn

yarn start

License: MIT Logo Edited from: payment by Eucalyp from the Noun Project