Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Payment gateway for flutter [closed]

How can I integrate a payment gateway in flutter framework. Is there any libraries I can use readily? Do I need to do it separately in iOS and Android? In that case which is the best library available in India? Check out the new package for making payment https://pub.dev/packages/flutter_paystack

like image 460
Ambareesh B Avatar asked Feb 28 '18 04:02

Ambareesh B


People also ask

Does Stripe support Flutter?

Flutter Stripe. The Stripe Flutter SDK allows you to build delightful payment experiences in your native Android and iOS apps using Flutter.

Does Paytm use Flutter?

To merchants who have built their app on Flutter platform, Paytm provides a bridge to conveniently integrate All-in-One SDK.


2 Answers

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!

like image 91
Hemanth Raj Avatar answered Sep 20 '22 01:09

Hemanth Raj


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

like image 37
JAAYBone Avatar answered Sep 17 '22 01:09

JAAYBone