> For the complete documentation index, see [llms.txt](https://docs.foloosi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.foloosi.com/mobile-sdk-integrations/flutter.md).

# Flutter SDK

Integrate Our Flutter SDK For Seamless Payments ! This SDK is compatible with Android and iOS.

[![pub package](https://img.shields.io/pub/v/foloosi_plugins.svg)](https://pub.dev/packages/foloosi_plugins)

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](/get-started/create-api-credentials.md).

#### Dart Versions

```dart
environment:
  sdk: ">=2.12.0 <4.0.0"
```

## Android Requirement

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

```
android {
    defaultConfig {
        minSdkVersion 21
    }
    buildTypes {
        release {
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
    }
}
```

#### Proguard Rules (Mandatory for release build)

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

-keepattributes JavascriptInterface
-keepattributes *Annotation*

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

-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 12+ (iPhone, iPad)

#### SDK Properties

If you are using secret and merchant keys as strings in flutter, **Remember** to escape the dollar sign although it is recommended to load these from backend.

#### sample escape string

```
merchantKey: 'key_\$2\$1\$1xxxxxxxxxxxxxxxxxxxxx'
```

**NOTE**

Supports 170 World Currencies

Apple pay will be available only when API mode is in live.

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi
