An experimental MoneyButton plugin for Flutter Web
Displaying Money Buttons onscreen is very buggy because of an issue displaying iframes in Flutter web. You can use Invisible Money Button for the time being
Options is passed as is to the MoneyButton javascript api. Callbacks are not supported.
example:
container(
child:MoneyButton({"to": "[email protected]", "amount": 1, "currency": "USD"}, width:300)
)
To use invisible money button, include the Money Button script tag in your index.html file:
<script src="https://www.moneybutton.com/moneybutton.js"></script>
This package includes a polyfill for the official api with the one difference being that you use IMB(options)
instead of moneyButton.IMB(options)
;
Example:
var imb = IMB(clientIdentifier:'your identifier',suggestedAmount:Amount(amount:1,currency:"USD"),onNewPermissionGranted:(String token){print(token);}
);