ippo_pay

A Flutter plugin for making payments via Ippopay Payment Gateway. Fully supports Android and iOS.

Installation

See Ippopay SDK for more info.

Dart Versions

environment:
  sdk: ">=2.12.0 <3.0.0"

Android Requirement

Set up Android build.gradle (android/app/build.gradle)

android {
    defaultConfig {
        minSdkVersion 21
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            ...
        }
    }
    dependencies {
        implementation 'com.ippopay:IppoPaySDK:2.1.3'
        implementation 'com.google.code.gson:gson:2.8.9'
    }
}

Proguard Rules

If you are using Proguard for your builds, modify the Proguard rule file:

-keepclassmembers class * {
    @android.webkit.JavascriptInterface <methods>;
}

-keepattributes JavascriptInterface
-keepattributes *Annotation*

-dontwarn com.ippopay.**
-keep class com.ippopay.** {*;}

-optimizations !method/inlining/*

Note

  • 4.1.0 or higher is required for settings build.gradle
  • 1.4.30 or higher is required for kotlin version

iOS Requirement

iOS Deployment Target 11+ (iPhone, iPad)

SDK Properties Note

If you are using the Ippopay secret and merchant keys as a string in flutter, remember to escape the $ dollar signs although it is recommended to load these from your backend

Libraries

ippo_pay