Install & platform setup
Add the package, then apply the two platform settings the Flutter template does not set on its own. Everything else the SDK needs it brings with it.
pubspec.yaml
# The package is distributed from Git, not pub.dev.
dependencies:
rezolvepay_flutter:
git:
url: [email protected]:rezolved/rp-sdk-flutter.git
ref: v1.0.0 # pin a tag, never track a branch
# then: flutter pub getiOS
# ios/Podfile - the RezolvePay SDK needs iOS 15 or newer
platform :ios, '15.0'
<!-- ios/Runner/Info.plist - DEBUG builds ONLY, for a local stack over -->
<!-- plain HTTP. Never ship this in a release build. -->
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsLocalNetworking</key>
<true/>
</dict>
Android
// android/app/src/main/kotlin/<your>/<package>/MainActivity.kt
package com.example.myapp
import io.flutter.embedding.android.FlutterFragmentActivity
// A 3DS challenge is presented as a fragment, so the template
// FlutterActivity is not enough.
class MainActivity : FlutterFragmentActivity()<!-- android/app/src/main/res/values/styles.xml -->
<!-- The SDK requires an AppCompat/MaterialComponents descendant. -->
<style name="NormalTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>// android/app/build.gradle.kts
android {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
defaultConfig { minSdk = 21 }
}Platform requirements
| Platform | Minimum | Also required |
|---|---|---|
| iOS | deployment target 15.0 | Nothing else for a production HTTPS backend — but saved cards need the Associated Domains entry under Passkeys. |
| Android | minSdk 21, Java 17 | MainActivity must extend FlutterFragmentActivity — a 3DS challenge is presented as a fragment — and the app theme must descend from Theme.MaterialComponents. |
| Flutter | Dart SDK ^3.11.0 | The SDK's own dependencies come with it; you add nothing else. |
Updated about 4 hours ago
Did this page help you?

