Skip to content

jonaird/moneybutton_flutter_web

Repository files navigation

moneybutton_flutter_web

An experimental MoneyButton plugin for Flutter Web

Usage

MoneyButton(Map options, (optional) {width: double yourWidth})

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)
  )

Invisible Money Button

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);}
);

About

An experimental MoneyButton plugin for Flutter Web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published