fastpay_merchant 1.1.7
fastpay_merchant: ^1.1.7 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.
FastPay Flutter SDK #
FastPay Developers Arena #
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.
SDK flow #

Screenshots #
![]() |
![]() |
![]() |
|---|
Quick Glance #
- This plugin is official. FastPay Developers Portal.
- You need to contact FastPay to get a storeID and Password.
Installation #
dependencies:
fastpay_merchant: ^1.1.7
⚠️ iOS only supports real device you can't test it on simulator because FastPay SDK not support simulator
Initiate FastPaySDK #
- Store ID : Merchant’s Store Id to initiate transaction
- Store Password : Merchant’s Store password to initiate transaction
- Order ID : Order ID/Bill number for the transaction, this value should be unique in every transaction
- Amount : Payable amount in the transaction ex: “1000”
- Callback( Sdk status, message, FastpayResult): There are four sdk status (e.g. FastpayRequest.SDKStatus.INIT) , status message show scurrent status of the SDK and the result is fastpay SDK payment result.
enum SDKStatus{
INIT, PAYMENT_WITH_FASTPAY_SDK, CANCEL, SUCCESS, FAILED}
Examples #
- Initiate payment in init method of your flutter widget:
import 'package:fastpay_merchant/models/fastpay_payment_request.dart';
/* * * Add this code on init method
*/
FastpayFlutterSdk.instance.fastpayPaymentRequest = FastpayPaymentRequest(
"******STORE ID*****", //(Required)
"******STORE PASSWORD****", //(Required) "450", //AMOUNT
"YOUR ORDER ID", //order Id
false,// is production (Required)
(status, message, {result}) {
debugPrint('PRINT_STACK_TRACE::MESSAGE.....................: ${message}');
debugPrint('PRINT_STACK_TRACE.....................: ${result.toString()}');
},
);
- Start the journey by navigating the app to the SDK:
FastpayFlutterSdk.instance.context = context;
Navigator.of(context).push(MaterialPageRoute(builder: (_) => const SdkInitializeScreen()));
Payment Result #
FastpayPaymentResponse class contains these params:
- isSuccess : return true for a successful transaction else false.
- errorMessage : if transaction failed return failed result
- transactionStatus : Payment status weather it is success / failed.
- transactionId : If payment is successful then a transaction id will be available.
- orderId : Unique Order ID/Bill number for the transaction which was passed at initiation time.
- paymentAmount : Payment amount for the transaction. “1000”
- paymentCurrency : Payment currency for the transaction. (IQD)
- payeeName : Payee name for a successful transaction.
- payeeMobileNumber : Number: Payee name for a successful transaction.
- paymentTime : Payment occurrence time as the timestamp.


