milacoins-widget-react
v0.3.51
Published
npm i milacoins-widget-react
Downloads
12
Readme
MilaCoins Crypto Payment Widget For React
Install
npm i milacoins-widget-react
Links
Quickstart
Set the WIDGET_KEY from MilaCoins dashboard
import React from 'react';
import MilaCoins from 'milacoins-widget-react';
const Index = ({ amount, onSuccess, customer }) => {
return (
<MilaCoins
widgetKey={WIDGET_KEY}
amount={amount}
currency="EUR"
walletTarget="EUR"
externalID={customer.email || ''}
onSuccess={onSuccess}
customer={customer}
mode="sandbox"
style={{}}
/>
);
};
export default Index;