stripe_flutter_channel 0.0.1

Flutter Android iOS

Integration between Stripe payment gateway and flutter using native library iOS and Android

stripe_flutter_channel #

Integration between Stripe payment gateway and flutter using native library iOS and Android

Getting Started #

To use this plugin, add shared_preferences as a dependency in your pubspec.yaml file.

Usage #

Create Stripe flutter using constructor with publishable key
StripeFlutterChannel stripeClient = StripeFlutterChannel(stripePublishableKey, backendServerLink);
Monitor instance is initialized
bool _isInit = false;

onInitialized() {
    setState(() {
      _isInit = stripeClient.initializeNotifier.value;
    });
}

stripeClient.initializeNotifier.addListener(onInitialized);

///Remember to dispose listeners when page deallocate
stripeClient.initializeNotifier.removeListener(onInitialized);
Create card token by card info
String cardToken = await stripeClient.getCardToken('4242424242424242', 5, 2020, '123');
Create charge request to your backend server
bool isCharged = await stripeClient.createCharge(cardToken, /*10.29*/1029, chargeRequestId: 'YOUR_CHARGE_REQUEST_ID')
0
likes
90
pub points
66%
popularity

Integration between Stripe payment gateway and flutter using native library iOS and Android

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

ywp033319@gmail.com

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on stripe_flutter_channel