cofee_payment_flutter 2.0.0
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 #
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 aFuture<CheckoutResult>with the final outcome when checkout closes:CheckoutSuccess,CheckoutFailedorCheckoutDismissed, each with itsorderId.on()/off()listeners forpayment.success,payment.failed(every attempt) andcheckout.dismissed, each with itsorderId.close()andisOpen.
- Create one instance with your merchant settings (
- 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 (
preferedUpiAppsquery 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 #
CoFeePaymentis deprecated in favour ofCofeeCheckout. It still works unchanged.
Android #
- Added the
androidx.webkitdependency. - Declares the
INTERNETpermission, so release builds load checkout without changes to the app's manifest. - Declared a
<queries>entry for theupischeme so installed UPI apps are visible on Android 11+.