fastpay_merchant 1.3.0
fastpay_merchant: ^1.3.0 copied to clipboard
Accept payments with FastPay's APIs. Our simple and easy-to-integrate APIs allow for less effort in processing payments. This is an official support channel, but our APIs support both Android and iOS.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add fastpay_merchant
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
fastpay_merchant: ^1.3.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:fastpay_merchant/fastpay_flutter_sdk.dart';
import 'package:fastpay_merchant/models/fastpay_payment_request.dart';
import 'package:fastpay_merchant/models/fastpay_payment_response.dart';
import 'package:fastpay_merchant/models/request/payment_initiation_request.dart';
import 'package:fastpay_merchant/models/request/payment_send_otp_request.dart';
import 'package:fastpay_merchant/models/request/payment_validate_request.dart';
import 'package:fastpay_merchant/models/response/base_response_model.dart';
import 'package:fastpay_merchant/models/response/payment_initiation_response.dart';
import 'package:fastpay_merchant/models/response/payment_success_response.dart';
import 'package:fastpay_merchant/models/response/payment_validate_response.dart';
import 'package:fastpay_merchant/models/test_model.dart';
import 'package:fastpay_merchant/services/fastpay_sdk_controller.dart';
import 'package:fastpay_merchant/ui/initializeScreen/sdk_initialize_screen.dart';
import 'package:fastpay_merchant/ui/otpScreen/otp_verification_screen.dart';
import 'package:fastpay_merchant/ui/paymentScreen/payment_screen.dart';
import 'package:fastpay_merchant/ui/termsAndConditionScreen/terms_and_condition_screen.dart';
import 'package:fastpay_merchant/ui/widget/CustomCheckbox.dart';
import 'package:fastpay_merchant/ui/widget/CustomOtpView.dart';
import 'package:fastpay_merchant/ui/widget/PhoneNumberTextInputFormatter.dart';
import 'package:fastpay_merchant/ui/widget/amount_dashboard.dart';
import 'package:fastpay_merchant/ui/widget/app_bar.dart';
import 'package:fastpay_merchant/ui/widget/text_style.dart';