flutter_stripe 2.4.0 copy "flutter_stripe: ^2.4.0" to clipboard
flutter_stripe: ^2.4.0 copied to clipboard

outdated

Flutter library for Stripe. Supports PaymentSheets, Apple & Google Pay, SCA, PSD2 and much more.

example/readme.md

Usage example #

// main.dart
import 'package:flutter_stripe/flutter_stripe.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  
  // set the publishable key for Stripe - this is mandatory
  Stripe.publishableKey = stripePublishableKey;
  runApp(App());
}

// payment_screen.dart
class PaymentScreen extends StatelessWidget {
  
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Container(
        alignment: Alignment.center,
        padding: EdgeInsets.all(16),
        child: CardField(
          onCardChanged: (card) {
            print(card);
          },
        ),
      ),
    );
  }
}

Check a full example app here

1160
likes
0
pub points
99%
popularity

Publisher

verified publisherflutterstripe.io

Flutter library for Stripe. Supports PaymentSheets, Apple & Google Pay, SCA, PSD2 and much more.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, stripe_android, stripe_ios, stripe_platform_interface

More

Packages that depend on flutter_stripe