stripe_flutter_channel 0.0.1 copy "stripe_flutter_channel: ^0.0.1" to clipboard
stripe_flutter_channel: ^0.0.1 copied to clipboard

discontinuedreplaced by: flutter_stripe

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
30
pub points
0%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on stripe_flutter_channel