easy_stripe_payment 1.0.2 copy "easy_stripe_payment: ^1.0.2" to clipboard
easy_stripe_payment: ^1.0.2 copied to clipboard

A Flutter package that provides simple and ready stripe payment method.

example/main.dart

import 'package:flutter/material.dart';
import 'package:easy_stripe_payment/easy_stripe_payment.dart';

String publishKey = your_publishable_key;
String secretKey = your_secret_key;

void main() async{
  WidgetsFlutterBinding.ensureInitialized();
 await EasyStripePayment.instance.init(secretKey: secretKey, publishKey: publishKey);
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text("Easy Stripe Payment Example")),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              await EasyStripePayment.instance.makePayment(amount: 50, currency: "eur");
            },
            child: Text("Pay Now"),
          ),
        ),
      ),
    );
  }
}
1
likes
0
points
47
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides simple and ready stripe payment method.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter, flutter_stripe

More

Packages that depend on easy_stripe_payment