A Flutter SDK for integration guide of End2EndPay payment processes into your Flutter applications. This SDK provides a secure WebView-based payment interface with comprehensive callbacks support. Secure Payment Processing: Uses WebView with security-enhanced settings
Input Validation: Comprehensive validation for all payment parameters Cross-Platform: Works on both Android and iOS
Callback Support: Success, error, and cancel callbacks
Easy Integration: Simple API with minimal setup required
Add this to your package's pubspec.yaml file:Android#
Add to android/app/src/main/AndroidManifest.xml:<manifest>
<uses-permission android:name="android.permission.INTERNET" />
<application android:usesCleartextTraffic="true">
</application>
</manifest>
Update android/app/build.gradle:iOS#
Add to ios/Runner/Info.plist:<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>io.flutter.embedded_views_preview</key>
<true/>
End2EndPayWebView#
| Property | Type | Required | Description |
|---|
apiKey | String | Yes | Your End2EndPay API key |
accessToken | String | Yes | Your End2EndPay access token |
amount | double | Yes | Payment amount (must be > 0 and ~ 999999999.99) |
currency | String | Yes | 3-letter currency code (e.g., "USD", "EUR", "NGN") |
reference | String | Yes | Unique payment reference (max 255 characters) |
payerEmail | String | Yes | Valid email address of the payer |
onSuccess | Function(String)? | No | Callback when payment succeeds |
onError | Function(String)? | No | Callback when payment error occurs |
| onCancel | Function(String)? | No | Callback when payment is cancelled |