react-adyen-hpp-button
React component for the payment provider Adyen's Hosted Payment Page (HPP).
Installation
npm install react-adyen-hpp-button
Usage
import React from 'react'import AdyenHPPButton validateResponseQueryString from 'react-adyen-hpp-button' Component { const query = thisprops if query && // Received a callback from Adyen with valid query string parameters return <AdyenHPPButton = ='AdyenSecretKey' = ='Pay with Adyen' =/> }
Development
Clone this repo and run:
yarn run start
to start the demo appyarn run lint
to make sure code style is adheredyarn run test
to test
Publish
yarn run lib && npm publish