Amwal Pay Sdk

Amwal Pay SDK built in flutter makes online payment easier.

Features

  • Payment With Wallet
    • with mobile number
    • with alias name
    • with QRCode
  • Payment With Card

Requirements

  • Put the sdk navigator observer in the navigatorObservers in the material app

alt text alt text

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Amwal pay Demo',
      navigatorObservers: [
        AmwalSdkNavigator.amwalNavigatorObserver,
      ],
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const DemoScreen(),
    );
  }
}

Usage

  • Add the package as a dependency in your 'pubspec.yaml' file:
dependencies:
  amwal_pay_sdk: ^0.0.1
  • Import the package in your dart file where you want to use it by adding the following line at the top of the file:
import 'package:amwal_pay_sdk/amwal_pay_sdk.dart';
  • To route to the Amwal Pay Screen:

            final settings = AmwalSdkSettings(
                      token: "your_token",
                      currency: "EGP",
                      amount: "240",
                      merchantId: "1593578",
                      secureHashValue: "F458998E564E454E545F",
                      terminalId: "15874953",
                      isMocked: true,
                      is3DS: true,
                    );

            await AmwalPaySdk.instance.initSdk(
                    settings: settings
                  );

Example

You can see a full example of how to use the package in the Example example directory.

Issues

If you encounter any issues while using the package, please file a bug report in the Github issue tracker.

Contributing

If you would like to contribute to the package, please read the Contributing Guidelines before submitting a pull request.

AmwalSdkSettings Parameters

Parameters Name
token your token to use this package
currency Name of the currency that client will pay with
amount The amount of payment
merchantId Your Merchant Id goes here
terminalId terminalId goes here
isMocked true if you want to try this package use case and false if you want to use real apis

Free Software, Hell Yeah!

Libraries

core/ui/accepted_payment_methods_widget
core/ui/alert_dialog/alert_dialog
features/wallet/presentation/widgets/alias_pay_widget
core/ui/amountcurrencywidget/amount_currency_widget
core/ui/amountcurrencywidget/amount_currency_widget_cubit
presentation/amwal_pay_screen
amwal_pay_sdk
features/wallet/amwal_salebywallet_sdk
amwal_pay_sdk_flutter
features/card/amwal_salebycard_sdk
amwal_sdk_settings/amwal_sdk_settings
core/apiview/api_view
features/card/presentation/app
features/wallet/presentation/app
core/resources/assets/app_assets_paths
core/ui/buttons/app_button
core/ui/app_dialog
localization/app_localizations
localization/app_localizations_delegate
localization/app_localizations_setup
core/ui/buttons/app_main_button
core/base_view_cubit/base_cubit
core/base_state/base_cubit_state
core/base_repository/base_repository
core/base_response/base_response
core/ui/listpicker/bottom_select_list
core/ui/cardinfoform/card_form_inputs_formatter
core/ui/cardinfoform/card_info_form_widget
core/ui/cardinfoform/card_type
core/ui/cardinfoform/card_utils
core/resources/color/colors
presentation/color/colors
core/networking/constants
core/ui/count_down_dialog/count_down_dialog
features/currency_field/module/currency_binds
features/currency_field/domain/currency_constants
features/currency_field/cubit/currency_cubit
features/currency_field/presentation/currency_field
features/currency_field/data/repository/currency_repository
features/currency_field/domain/repository/currency_repository
features/currency_field/data/models/request/currency_request
features/currency_field/data/models/response/currency_response
features/currency_field/domain/use_case/currency_use_case
core/networking/custom_log_interceptor
core/ui/inputfields/date_picker_field
core/ui/amountcurrencywidget/decimal_text_input_formatter
core/networking/dio_client
core/ui/directional_widget/directional_widget
features/wallet/data/models/request/dynamic_qr_request
core/networking/EncryptionUtil
core/ui/error_dialog
core/usecase/i_use_case
features/card/dependency/injector
features/wallet/dependency/injector
core/ui/inputfields/input_field_widget
core/loader_mixin
core/ui/loading_dialog
localization/locale_utils
core/merchant_store/merchant_store
core/networking/mockup_interceptor
core/networking/network_service
sdk_builder/network_service_builder
core/networking/network_state
features/card/presentation/widgets/otp_dialog
features/wallet/domain/use_case/pay_with_alias_use_case
features/wallet/domain/use_case/pay_with_mobile_use_case
features/wallet/domain/use_case/pay_with_qr_use_case
features/payment_argument
features/wallet/data/models/request/payment_request
core/ui/inputfields/phone_input_field
features/wallet/presentation/widgets/phone_pay_widget
features/card/domain/use_case/purchase_otp_step_one_use_case
features/card/domain/use_case/purchase_otp_step_two_use_case
features/card/data/models/request/purchase_request
features/card/data/models/response/purchase_response
features/card/domain/use_case/purchase_use_case
features/wallet/data/models/response/qr_response
features/receipt/receipt_handler
features/wallet/presentation/widgets/sale_action_buttons
features/card/domain/sale_by_card_constants
features/card/cubit/sale_by_card_manual_cubit
features/card/presentation/sale_by_card_manual_screen
features/card/module/sale_by_card_module
features/card/domain/repository/sale_by_card_repo
features/card/data/repository/sale_by_card_repository
features/card/presentation/sale_by_card_screen
features/wallet/cubit/sale_by_qr_cubit
features/wallet/presentation/widgets/sale_by_wallet_mixins/sale_by_wallet_action_mixin
features/wallet/data/sale_by_wallet_constant
features/wallet/cubit/sale_by_wallet_cubit
features/wallet/module/sale_by_wallet_module
features/wallet/cubit/sale_by_wallet_pay_cubit
features/wallet/presentation/widgets/sale_by_wallet_mixins/sale_by_wallet_pay_mixin
features/wallet/presentation/screen/sale_by_wallet_paying_options
features/wallet/data/repository/sale_by_wallet_repo_imp
features/wallet/domain/sale_by_wallet_repository
features/wallet/data/models/request/sale_by_wallet_request
features/wallet/data/models/response/sale_by_wallet_response
features/wallet/presentation/screen/sale_by_wallet_screen
features/wallet/state/sale_by_wallet_state
features/card/state/sale_by_wallet_state
features/wallet/cubit/sale_by_wallet_verify_cubit
features/wallet/presentation/widgets/sale_by_wallet_mixins/sale_by_wallet_verify_mixin
core/ui/sale_card_feature_common_widgets
features/wallet/presentation/widgets/scan_qr_to_pay
presentation/sdk_arguments
sdk_builder/sdk_builder
navigator/sdk_navigator
core/networking/secure_hash_interceptor
core/apiview/state_mapper
core/tablayout/tab_layout_cubit
core/tablayout/tab_layout_generic_widget
core/networking/token_interceptor
core/ui/transactiondialog/transaction
core/ui/transactiondialog/transaction_detail_widget
core/ui/transactiondialog/transaction_details_settings
core/ui/transactiondialog/transaction_dialog_action_buttons
core/ui/transactiondialog/transaction_status_dialog
features/wallet/data/models/request/verification_request
features/wallet/data/models/response/verify_customer_response
features/wallet/domain/use_case/verify_customer_use_case
features/wallet/data/models/response/wallet_pay_response