Skip to content

BlueBeanStudios/flutter_stripe_payment

 
 

Repository files navigation

stripe_payment

A flutter plugin to integrate the stripe plugin for iOS and Android. Currently only adding a credit card as source is implemented.

Usage

To set your publishable key set:

import 'package:stripe_payment/stripe_payment.dart';
StripeSource.setPublishableKey("pk_test");

from somewhere in your code, e.g. your main.dart file.

To open the dialog:

StripeSource.addSource().then((String token) {
    print(token); //your stripe card source token
});

Android

Please be aware that your main activity must extend from FlutterFragmentActivity. Otherwise the Android dialog would've looked very nasty.

TODO

  • better error handling
  • internationalization
  • more stripe library implementations?

About

A flutter plugin with stripe payment plugin integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 51.7%
  • Kotlin 30.4%
  • Ruby 9.2%
  • Dart 8.7%