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?
Comments are closed.