littlefish_payments 3.2.0
littlefish_payments: ^3.2.0 copied to clipboard
The littlefish payments library, that is used to handle payments in all littlefish mobile applications.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add littlefish_payments
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
littlefish_payments: ^3.2.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:littlefish_payments/gateways/cash_payments_gateway.dart';
import 'package:littlefish_payments/gateways/mobile_money_payment_gateway.dart';
import 'package:littlefish_payments/gateways/pos_payment_gateway.dart';
import 'package:littlefish_payments/gateways/qr_payment_gateway.dart';
import 'package:littlefish_payments/gateways/softpos_payment_gateway.dart';
import 'package:littlefish_payments/managers/linked_account_manager.dart';
import 'package:littlefish_payments/managers/payments_manager.dart';
import 'package:littlefish_payments/managers/terminal_manager.dart';
import 'package:littlefish_payments/models/accounts/address.dart';
import 'package:littlefish_payments/models/accounts/address.g.dart';
import 'package:littlefish_payments/models/accounts/business_profile.dart';
import 'package:littlefish_payments/models/accounts/business_profile.g.dart';
import 'package:littlefish_payments/models/accounts/business_type.dart';
import 'package:littlefish_payments/models/accounts/business_type.g.dart';
import 'package:littlefish_payments/models/accounts/linked_account.dart';
import 'package:littlefish_payments/models/accounts/linked_account.g.dart';
import 'package:littlefish_payments/models/customer/customer.dart';
import 'package:littlefish_payments/models/customer/customer.g.dart';
import 'package:littlefish_payments/models/customer/shipping_address.dart';
import 'package:littlefish_payments/models/customer/shipping_address.g.dart';
import 'package:littlefish_payments/models/order/combo_info.dart';
import 'package:littlefish_payments/models/order/combo_info.g.dart';
import 'package:littlefish_payments/models/order/order.dart';
import 'package:littlefish_payments/models/order/order.g.dart';
import 'package:littlefish_payments/models/order/order_discount.dart';
import 'package:littlefish_payments/models/order/order_discount.g.dart';
import 'package:littlefish_payments/models/order/order_history_log.dart';
import 'package:littlefish_payments/models/order/order_history_log.g.dart';
import 'package:littlefish_payments/models/order/order_line_item.dart';
import 'package:littlefish_payments/models/order/order_line_item.g.dart';
import 'package:littlefish_payments/models/order/tax_info.dart';
import 'package:littlefish_payments/models/order/tax_info.g.dart';
import 'package:littlefish_payments/models/shared/payment_gateway.dart';
import 'package:littlefish_payments/models/shared/payment_provider.dart';
import 'package:littlefish_payments/models/shared/payment_result.dart';
import 'package:littlefish_payments/models/shared/payment_type.dart';
import 'package:littlefish_payments/models/shared/purchase_helper.dart';
import 'package:littlefish_payments/models/terminal/merchant_enrol_data.dart';
import 'package:littlefish_payments/models/terminal/terminal_data.dart';
import 'package:littlefish_payments/models/terminal/terminal_enrol_data.dart';
import 'package:littlefish_payments/models/theme/provider_theme.dart';
import 'package:littlefish_payments/models/transaction/order_refund.dart';
import 'package:littlefish_payments/models/transaction/order_refund.g.dart';
import 'package:littlefish_payments/models/transaction/order_refund_line_item.dart';
import 'package:littlefish_payments/models/transaction/order_refund_line_item.g.dart';
import 'package:littlefish_payments/models/transaction/order_transaction.dart';
import 'package:littlefish_payments/models/transaction/order_transaction.g.dart';
import 'package:littlefish_payments/models/transaction/payment_type.dart';
import 'package:littlefish_payments/models/transaction/payment_type.g.dart';
import 'package:littlefish_payments/utils/business_service.dart';
import 'package:littlefish_payments/utils/device_helpers.dart';
import 'package:littlefish_payments/utils/linked_account_helper.dart';
import 'package:littlefish_payments/utils/linked_account_service.dart';