leumas-metamask-quickpay
v1.0.10
Published
Quickly pay with MetaMask. Pay with crypto
Downloads
61
Maintainers
Readme
npm install leumas-metamask-pay
Example
import React from 'react';
import PayWithMetaMaskButton from 'leumas-metamask-pay';
const YourComponent = () => {
const handlePaymentSuccess = () => {
console.log('Payment Successful!');
};
return (
<div>
<h1>Buy our product</h1>
<PayWithMetaMaskButton
amount={50}
recipientAddress="0xYourRecipientAddress"
onPaymentSuccess={handlePaymentSuccess}
/>
</div>
);
};
export default YourComponent;