Skip to content

SaraVieira/react-payment-request

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published