moneybutton_flutter_web 0.1.2 copy "moneybutton_flutter_web: ^0.1.2" to clipboard
moneybutton_flutter_web: ^0.1.2 copied to clipboard

An experimental MoneyButton plugin for Flutter Web

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": "jonathanaird@moneybutton.com", "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);});
1
likes
30
pub points
0%
popularity

Publisher

unverified uploader

An experimental MoneyButton plugin for Flutter Web

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

easy_web_view, flutter, js

More

Packages that depend on moneybutton_flutter_web