@pickk/pay
v1.5.2
Published
PICKK Payment module
Downloads
145
Readme
Requirements
- nodejs >= 0.12.x
- not support browsers below IE 8
Installation
$ npm install --save @pickk/pay
# or
$ yarn add @pickk/pay
Usage
import Pay from '@pickk/pay';
function PayScreen() {
useEffect(() => {
Pay.init('YOUR_PAY_SERVICE_URL');
}, []);
const handleClick = () => {
Pay.request(data, callback);
};
return <button onClick={handleClick}>Place Order</button>;
}