Payment gateway for flutter [closed]

五迷三道 提交于 2019-12-02 19:05:05

There are no payment plugins for flutter yet.

To integrate payments into a flutter app, just integrate payments natively and invoke it by implementing a platform channel.

An example of platform channel implementation is shown here.

Hope that helped!

During the Flutter live, they have announced Payment integration for the flutter App.You can find the sdk from the below given link. All documentation are available on that website.

https://squareup.com/us/en/flutter

I was able to integrate stripe using webview & flutter_webview_plugin

 String test = "Test Charge";
 int amount = 100;
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
        home: new WebviewScaffold(
      url: new Uri.dataFromString('''
      <html>
        <head>
         <meta name="viewport" content="width=device-width">
        </head>
        <center>
          <body>      
            <form action="Your Server" method="POST">
              <script
                src="https://checkout.stripe.com/checkout.js" class="stripe-button"
                data-key="pk_test_key"
                data-amount="$amount"
                data-name="$test"
                data-description="My Order"
                data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
                data-locale="auto"
                data-currency="eur">
              </script>
            </form>            
          </body>
        </center>
      </html>
            ''', mimeType: 'text/html').toString(),
    ));
  }

you'll need to set up a server for live payments. More info can be found: https://stripe.com/docs/checkout#integration-simple

go to https://pub.dartlang.org/flutter and search wih the word 'payment' you'll see results like Paystack and Stripe

it's just a matter of time and every Payment Gateway should provide its own official plugin for Flutter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!