flutter_payment_plugin 1.0.16 copy "flutter_payment_plugin: ^1.0.16" to clipboard
flutter_payment_plugin: ^1.0.16 copied to clipboard

A Flutter plugin for Omniware Payment Gateway integration.

1.0.16 #

  • iOS: Fixed form POST for params whose values contain quotes (e.g. split_info JSON). Hidden input values are now HTML-escaped, matching Android and Web.
  • Example: Added split_info vendor-split field with hash generation (splitInfo camelCase key) for testing settlement splits.

1.0.15 #

  • Web: Payment opens in a new tab with an immediate form POST to the gateway—no intermediate launcher page.
  • Web: Return handling via postMessage and BroadcastChannel; host app must host payment_return.html on the same origin as the Flutter app (see README).
  • Web: New error codes POPUP_BLOCKED and PAYMENT_TAB_ERROR when the payment tab cannot be opened or submitted.
  • Android: Emit plugin log events on the main thread to avoid threading issues during payment callbacks.
  • Android: Added debug logging for payment status API requests and responses (visible when diagnosing return-url flows).
  • Example: Web playground auto-fills return_url to …/payment_return.html and documents popup/hash requirements.

1.0.14 #

  • Android: Fixed build failure with AGP 9+ by migrating plugin Gradle config from legacy buildscript + apply plugin DSL to the modern plugins {} block.

1.0.13 #

  • Normalize payment response payload so all leaf values are returned as strings (consistent across Android/iOS/Web).

1.0.12 #

  • Release 1.0.12: version bumped across pubspec, podspec, and Dart API.

1.0.11 #

  • Added a loader spinner on the WebView payment screen until the actual payment page loads.
  • Android: Full-screen overlay with "Loading payment page..." and progress indicator; hides when the gateway page has finished loading (after form POST).
  • iOS: Semi-transparent overlay with activity indicator and "Loading payment page..." text; hides when the payment page has loaded, and on error or close.
  • iOS loader fix: Show overlay before loading (deferred load), bring overlay to front, and only hide when the real payment page URL has loaded (normalized URL comparison to avoid hiding on initial form base URL).

1.0.10 #

  • Simplified the openPayment API: actionPath and javaScript are no longer required from the client. Both values are now managed internally by the plugin.

1.0.9 #

  • Fixed intermittent WebSocket (code 1006) errors by preventing device sleep during payment (added KEEP_SCREEN_ON).
  • Suppressed noisy CSP and console logs from WebView when devLogs is disabled.

1.0.8 #

  • Enhanced WebView compatibility for both Android and iOS to resolve white screen and Content Security Policy (CSP) issues.
  • Android: Enabled Universal Access and File Access from URLs, added standard mobile User-Agent, and improved zoom support.
  • iOS: Enabled inline media playback, navigation gestures, and added standard mobile User-Agent.
  • Normalized Base URL handling to ensure consistent origin resolution.

1.0.7 #

  • Added getPluginVersion method to the SDK to allow retrieving the plugin version dynamically.
  • Updated example app to display the dynamic SDK version.

1.0.6 #

  • Fixed "white screen" issue on both Android and iOS by automatically clearing WebView cache, cookies, and local storage before every new payment transaction.
  • This ensures a clean state for every session, preventing stale data from causing load failures.

1.0.5 #

  • Included iOS Privacy Manifest (PrivacyInfo.xcprivacy) in the podspec resources to comply with Apple's privacy requirements.

1.0.4 #

  • Improved Android Activity lifecycle handling to prevent "WindowStopped" errors.
  • Fixed WebView timers and background behavior to keep connections alive during payment.
  • Added proper configChanges to AndroidManifest.xml to handle rotation and keyboard visibility without restarting.
  • Enhanced URL interception robustness for reliable payment success callbacks.
  • Enabled hardware acceleration and better viewport settings for WebView.

1.0.3 #

  • Added a waiting overlay on Android when a UPI app is launched.
  • Improved user experience by keeping the overlay visible until the payment response is received.
  • Enhanced UPI app picker to trigger the waiting screen upon app selection.

1.0.2 #

  • Refactored Android payment response: now returns a single flattened JSON object with merged hash.
  • Updated documentation with hash generation logic.

1.0.1 #

  • Fixed ERR_NAME_NOT_RESOLVED error on Android when returning from UPI apps.
  • Improved WebView error handling to ignore non-fatal sub-resource errors.

1.0.0 #

  • Unified Android UPI intent handling to match iOS behavior.
  • Added custom bottom sheet for UPI app selection on Android.
  • Improved error handling for missing or failing UPI applications.
  • Added fallbacks for generic UPI intents.

0.1.1 #

  • Declare web platform in pubspec.yaml for auto-registration.
  • Add repository and issue_tracker metadata.
  • Update LICENSE to MIT.
  • Broaden Dart SDK constraint to >=3.0.0 <4.0.0.

0.1.0 #

  • Initial public release.
  • Android/iOS support.
  • Simple API: openPayment(url, params, ...) with fixed /v2/paymentrequest endpoint.
  • Integration-only README, iOS URL schemes guidance, and troubleshooting.