Integration between Stripe payment gateway and flutter using native library iOS and Android.
Currently busy at the moment, will contiune to develop about mid May
To use this plugin, add shared_preferences as a dependency in your pubspec.yaml file.
StripeFlutterChannel stripeClient = StripeFlutterChannel(stripePublishableKey, backendServerLink);
bool _isInit = false;
onInitialized() {
setState(() {
_isInit = stripeClient.initializeNotifier.value;
});
}
stripeClient.initializeNotifier.addListener(onInitialized);
///Remember to dispose listeners when page deallocate
stripeClient.initializeNotifier.removeListener(onInitialized);
String cardToken = await stripeClient.getCardToken('4242424242424242', 5, 2020, '123');
bool isCharged = await stripeClient.createCharge(cardToken, /*10.29*/1029, chargeRequestId: 'YOUR_CHARGE_REQUEST_ID')