stripe_fl 0.1.0 copy "stripe_fl: ^0.1.0" to clipboard
stripe_fl: ^0.1.0 copied to clipboard

discontinued

Stripe Payment Dart SDK, Easily check the api and its documentation https://stripe.com/docs/api/

example/example.dart

import 'package:stripe_fl/stripe_fl.dart';

main() {
  load();
}

void load() async {
  try {
    var cardObject = await Tokenize().card(
        cvc: '123',
        expiryMonth: 12,
        expiryYear: 2020,
        number: '4242424242424242',
        name: 'Ogbonda Chiziaruhoma',
        phone: '2348113823269');

    print(cardObject?.data);

    if (cardObject?.data?.id != null) {
      var m = await Charge().card(
          source: cardObject?.data?.id,
          amount: 2000,
          description: 'Test Money Collected from chiiaruhoma@gmail.com',
          receiptEmail: 'chiziaruhoma@gmail.com');

      print(m?.data);
    }
  } catch (e) {
    print(e.toString());
  }
}
6
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Stripe Payment Dart SDK, Easily check the api and its documentation https://stripe.com/docs/api/

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

built_collection, built_value, convert, dio, http, meta

More

Packages that depend on stripe_fl