amazon_payfort 1.0.6 copy "amazon_payfort: ^1.0.6" to clipboard
amazon_payfort: ^1.0.6 copied to clipboard

Flutter plugin for Amazon Payment Services (Payfort). It supports both android and iOS.

example/lib/main.dart

import 'package:amazon_payfort_example/constants/app_colors.dart';
import 'package:amazon_payfort_example/providers/payment_provider.dart';
import 'package:amazon_payfort_example/views/payment_screen.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Amazon Payfort Example',
      theme: ThemeData(
        primaryColor: AppColors.primaryColor,
        appBarTheme: const AppBarTheme(
          elevation: 0,
          backgroundColor: AppColors.primaryColor,
          systemOverlayStyle: SystemUiOverlayStyle.light,
        ),
        colorScheme: ColorScheme.fromSwatch().copyWith(
          secondary: AppColors.primaryColor,
        ),
      ),
      home: ChangeNotifierProvider(
        create: (context) => PaymentProvider(),
        child: const PaymentScreen(),
      ),
    );
  }
}
21
likes
0
pub points
84%
popularity

Publisher

verified publishervdeveloper.tech

Flutter plugin for Amazon Payment Services (Payfort). It supports both android and iOS.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on amazon_payfort