stripe_payment 0.2.0 copy "stripe_payment: ^0.2.0" to clipboard
stripe_payment: ^0.2.0 copied to clipboard

discontinuedreplaced by: flutter_stripe
outdated

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

stripe_payment #

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

Android #

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

Include this into your project's android/gradle.properties file

android.useAndroidX=true
android.enableJetifier=true

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
});

TODO #

  • ❌ better error handling
  • ❌ internationalization
  • ❌ more stripe library implementations?
377
likes
0
pub points
92%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on stripe_payment