flutter_myfatoorah_payment 1.0.4
flutter_myfatoorah_payment: ^1.0.4 copied to clipboard

Flutter Android iOS

A new flutter plugin project.

MyFatoorah Payment Gateway Plugin #

A flutter plugin for integrating MyFatoorah payment gateway. Supports Android and iOS.

Installing #

Add this in pubspec.yaml

    flutter_myfatoorah_payment: ^1.0.4

iOS 9+ Specific #

ios developers should add the following to their plist


Using #

import 'package:flutter_myfatoorah_payment/flutter_myfatoorah_payment.dart';
startpayment() async {
    //Testing Credentials
    String credEmail = "apiaccount@myfatoorah.com";
     String credPass = "api12345*";
     int language = 0;
     String name = "JP";
     double price = 111.0;
    String paymentMethod = ".all";
    var response ;
    Map<dynamic, dynamic> map = {"cred_url":credUrl,
    try {
           response = await FlutterMyfatoorah.payment(map);
        } on PlatformException {

See the example directory for a complete sample app.

Responses : #

Sucess Response:
    all data about payment done in json string format

Error Response:
    cancelled by user: {"Error":"Payment Cancelled"}
    Gateway Errors: {"Error":"ssl error","responseCode":"500"}