fastpay_merchant 1.1.7 copy "fastpay_merchant: ^1.1.7" to clipboard
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 #

AndroidiOS
Pub Points pub package

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 #

alt text

Screenshots #

Screenshot 1 Screenshot 2 Screenshot 3

Quick Glance #

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 #

  1. 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()}');  
},  
);  
  1. 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.
11
likes
0
points
80
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

external_app_launcher, flutter, google_fonts, http, plugin_platform_interface, url_launcher

More

Packages that depend on fastpay_merchant

Packages that implement fastpay_merchant