We need Stripe-Android ported to Google's Flutter.
There are 2 ways of doing that:
One is to use platform-channels, so that a Dart layer interfaces with the original Stripe-Android code, in Java or Kotlin (see: https://flutter.io/docs/development/platform-integration/platform-channels).
Another is to port it to native Dart.
Note: Since Flutter is for iOS and Android, please also see: https://github.com/stripe/stripe-ios/issues/1129
Currently there are some individuals trying to start something in that regard (https://pub.dartlang.org/packages/stripe_payment and https://pub.dartlang.org/packages/stripe_api), but that's incipient and I believe the Flutter community actually deserves official support from Stripe.
Flutter reached stable 1.0 and is growing very fast. We need Stripe there too.
@marcglasberg thanks for filing the ticket. I've created an internal ticket to explore Flutter + Stripe integration. It's not something we can prioritize at this time, but it sounds like this is something that should be on our radar.
@mshafrir-stripe I would like to add that it would be interesting to have clean interfaces allowing the package to be avaliable on the web too without breaking the build, now that with have flutter web released in developper preview.
@Sach97 can you elaborate on what you mean by "clean interfaces"?
I would absolutely LOVE an official package from the Stripe team. With support for 3D secure (v1, v2) and the upcoming EU regulations. The unofficial ones are not reliable enough.
Hey, if you need a Flutter-dev in your team in SF, hook me up 馃槃
Hey Stripe team, any ideas on when we might see this or an early preview?
@MattL-NZ this is not currently on our roadmap
I recommend taking a look at jonasbark/flutter_stripe_payment as a Flutter Stripe SDK. Note that at this point it only supports a credit card form UI + ability to create a credit card payment method.
@mshafrir-stripe thanks. I've had a good look through that package and it doesn't seem to be everything I'm after. One quick question; If I was to write an API where the app parsed the credit card number to this API, is that still allowed? We would ensure that the number is not saved anywhere. Something along the lines of this: https://medium.com/devmins/stripe-implementation-payment-gateway-integration-postman-collection-ded68a115667
@MattL-NZ can you elaborate on what you mean by "where the app parsed the credit card number to this API"? I'm not clear on what you meant by "parsing".
If you're asking whether you can call the Stripe API tokenization API directly, then the answer is yes. You don't need to use one of Stripe's official libraries.
@mshafrir-stripe so basically I would build my own credit card hi form in the app. The user would enter their credit card details. I would then take those details and would send them to the API who would then create a token on the stripe side. I'd then assign that token to a customer. The link in my above comment is similar to how I would do it. Hope that makes more sense. Thanks.
@MattL-NZ yes, that would work, as long as you're using the publishable key.
@mshafrir-stripe Wait, so I can't use the secret key? It has to be the publishable key? Why is that?
@MattL-NZ I might have misunderstood the scenario you described, but secret keys should never ship with your app, they should only be used on your backend. See https://stripe.com/docs/keys for more details.
@mshafrir-stripe Do you guys have a slack channel or something similar where we can discuss further? I don't want to fill up this issue thread.
@MattL-NZ I just emailed you at the address listed on your profile
Any updates on this? An official cross-platform dart package from Stripe supporting Payment Intents would be appreciated馃槆.
Hi @MattL-NZ
May I join the slack channel to discuss too? Looking for ways to integrate stripe to flutter too.
@thehuangkai Send me a message on Twitter mate: https://twitter.com/MattLDev
Any update on flutter stripe plugin in 2020?
@msarkrish a Flutter library is not currently on our roadmap. Have you looked at https://github.com/jonasbark/flutter_stripe_payment as a 3rd party solution?
@msaffitz-stripe Is it possible to have https://pub.dev/packages/stripe_sdk added to the list of community libraries? It is a native dart library, which provides a dart API for endpoints accessible with a publishable or ephemeral key. It also offers some basic UI widgets for flutter, and handles SCA with a webview (using stripes hosted SCA) that redirects back to the app with a deeplink after completion.
If Stripe decides to support Flutter, a native Dart version that does not rely on platform channels is preferred. The indirection really isn鈥檛 necessary since Dart is perfectly capable of talking to RESTful APIs. The publishable key can be added once in Dart land, instead of trying to setup and debug across three platforms all the time. Native Flutter widgets are also preferred since many choose Flutter for its power in UI.
As a bonus, the library will work for Flutter web and desktop too if written with care.
any update in 2021? Flutter reached 2.0 and now it's going far beyond mobile/web. So indeed providing flutter official support will be really good. There are thousands of apps running with flutter and even growing more day by day. Stripe can really play a good role there.
I think this should be prioritized
We're working with the Flutter community on a new package: https://github.com/flutter-stripe/flutter_stripe
It is currently in beta, but we'd love for you to test it out and provide feedback there. Thanks.
@thorsten-stripe So, the flutter_stripe plugin is officially supported by Stripe?
@marcglasberg Yes, we鈥檙e actively supporting and sponsoring this project. The maintainers are some of the best developers in the Flutter community and we鈥檙e excited to work together with them and Google鈥檚 engineering team on upcoming features: https://opencollective.com/flutter_stripe
Most helpful comment
I would absolutely LOVE an official package from the Stripe team. With support for 3D secure (v1, v2) and the upcoming EU regulations. The unofficial ones are not reliable enough.
Hey, if you need a Flutter-dev in your team in SF, hook me up 馃槃