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

This SDK provides a simple way to integrate CoFee Payment into your Flutter applications. It handles the payment flow, including opening the payment page and monitoring for completion. It then calls a [...]

70/ 160
pub points
23
downloads

We analyzed this package 4 days ago, and awarded it 70 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
10 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Failed check 0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 1 link is insecure.

README.md:194:1

    ╷
194 │ <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a></p>
    │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

Use https URLs instead.

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` does not contain reference to the current version ("0.0.2").

Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.

Passed check 10/10 points: Use an OSI-approved license

Detected license: Apache-2.0.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

75 out of 90 API elements (83.3 %) have documentation comments.

Some symbols that are missing documentation: cofee_payment, cofee_payment_method_channel, cofee_payment_method_channel.MethodChannelCofeePaymentFlutter.MethodChannelCofeePaymentFlutter.new, cofee_payment_method_channel.MethodChannelCofeePaymentFlutter.getPlatformVersion, cofee_payment_platform_interface.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:cofee_payment_flutter/cofee_payment.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:cofee_payment_flutter/cofee_payment.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:cofee_payment_flutter/cofee_payment.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:cofee_payment_flutter/cofee_payment.dart that declares support for platforms: Android, iOS.
Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 0/50 points: code has no errors, warnings, lints, or formatting issues

Found 3 issues. Showing the first 2:

ERROR: Target of URI doesn't exist: 'package:cofee_payment_flutter/services/env.dart'.

lib/services/payment_details_provider.dart:2:8

  ╷
2 │ import 'package:cofee_payment_flutter/services/env.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/services/payment_details_provider.dart

ERROR: Undefined name 'SANDBOX_API_BASE_URL'.

lib/services/payment_details_provider.dart:120:16

    ╷
120 │         return SANDBOX_API_BASE_URL;
    │                ^^^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/services/payment_details_provider.dart

Failed report section
Support up-to-date dependencies
20 / 40trigger folding of the section

Passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
http ^1.3.0 1.6.0 1.6.0
plugin_platform_interface ^2.1.8 2.1.8 2.1.8
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
http_parser - 4.1.2 4.1.2
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.18.0
path - 1.9.1 1.9.1
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 3 errors:

  • URI_DOES_NOT_EXIST - lib/services/payment_details_provider.dart:2:8 - Target of URI doesn't exist: 'package:cofee_payment_flutter/services/env.dart'.
  • UNDEFINED_IDENTIFIER - lib/services/payment_details_provider.dart:120:16 - Undefined name 'SANDBOX_API_BASE_URL'.
  • UNDEFINED_IDENTIFIER - lib/services/payment_details_provider.dart:122:16 - Undefined name 'API_BASE_URL'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.5, Flutter 3.38.6, Dart 3.10.7.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
70
points
23
downloads

Publisher

verified publisherkeyvalue.systems

Weekly Downloads

This SDK provides a simple way to integrate CoFee Payment into your Flutter applications. It handles the payment flow, including opening the payment page and monitoring for completion. It then calls a callback, and *you* are responsible for checking the payment status after the callback.

Homepage

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, http, plugin_platform_interface

More

Packages that depend on cofee_payment_flutter

Packages that implement cofee_payment_flutter