A React component wrapper for the awesome Payment Request API.
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>
yarn
yarn start
License: MIT Logo Edited from: payment by Eucalyp from the Noun Project