Skip to main content

cofee_payment_flutter 2.0.0 copy "cofee_payment_flutter: ^2.0.0" to clipboard
cofee_payment_flutter: ^2.0.0 copied to clipboard

CoFee Checkout for Flutter: opens the CoFee checkout overlay in a native WebView and reports payment success, failure and dismiss, matching the CoFee Checkout web SDK.

0.0.1 #

  • Initial release of the project.

0.0.2 #

  • Bug fixes.

0.0.3 #

  • Bug fixes.

1.0.0 #

Payment Issue Fixes & Code Refactoring #

  • Resolved critical payment processing issues.
  • Refactored code for improved performance and maintainability.

Package Optimization #

  • Removed unnecessary packages to reduce overall size and streamline dependencies.

1.0.1 #

  • Fixed build issues.

1.0.2 #

  • Refactored code to enhance maintainability and readability.
  • Updated package description for improved clarity on pub.dev.
  • Enhanced code documentation for better API understanding.
  • Fixed method signatures in the public API for consistency.

2.0.0 #

CoFee Checkout #

  • Added CofeeCheckout, which opens the CoFee Checkout web SDK (@cofee/checkout-web-sdk) checkout with the same option and event names:
    • Create one instance with your merchant settings (CofeeCheckoutOptions) and reuse it for every payment.
    • open(orderId:) returns a Future<CheckoutResult> with the final outcome when checkout closes: CheckoutSuccess, CheckoutFailed or CheckoutDismissed, each with its orderId.
    • on() / off() listeners for payment.success, payment.failed (every attempt) and checkout.dismissed, each with its orderId.
    • close() and isOpen.
  • Runs the web SDK itself (0.2.0-beta.14, bundled in assets/checkout/cofee-checkout.js) in a full-screen native WebView, so payment results come straight from the checkout page.
  • Bank and 3DS windows open as popups over the checkout and report back to it.
  • UPI and other app links open the matching app, including Android intent:// links.
  • Added package:cofee_payment_flutter/cofee_payment_flutter.dart, a single import for the whole SDK.
  • On Android, checkout passes the package names of installed UPI apps to the payment page (preferedUpiApps query parameter) so it can offer them directly.
  • The payment page URL carries isFlutterSdk=true, so the page can tell it runs inside this SDK.

Requirements #

  • Flutter 3.27 or later, matching the Dart SDK ^3.6.0 constraint.

Deprecated #

  • CoFeePayment is deprecated in favour of CofeeCheckout. It still works unchanged.

Android #

  • Added the androidx.webkit dependency.
  • Declares the INTERNET permission, so release builds load checkout without changes to the app's manifest.
  • Declared a <queries> entry for the upi scheme so installed UPI apps are visible on Android 11+.
0
likes
0
points
203
downloads

Publisher

verified publisherkeyvalue.systems

Weekly Downloads

CoFee Checkout for Flutter: opens the CoFee checkout overlay in a native WebView and reports payment success, failure and dismiss, matching the CoFee Checkout web SDK.

Homepage

License

unknown (license)

Dependencies

flutter, http, plugin_platform_interface

More

Packages that depend on cofee_payment_flutter

Packages that implement cofee_payment_flutter