stripe_sdk 4.0.2
stripe_sdk: ^4.0.2 copied to clipboard

The only native Stripe library for Flutter. Has complete support for SCA/PSD2, payment intents and the newest Stripe features.

133
likes
60 / 130
pub points
95 %
popularity

We analyzed this package on May 6, 2021, and awarded it 60 pub points (of a possible 130):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/lib/main.dart

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

  • 65 out of 246 API elements (26.4 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 2 of 3 possible platforms (iOS, Android, Web)

Found 6 issues. Showing the first 2:

Consider supporting multiple platforms:

Package does not support Flutter platform Web

Because:

  • package:stripe_sdk/stripe_sdk.dart that imports:
  • package:stripe_sdk/src/stripe.dart that imports:
  • package:uni_links/uni_links.dart that declares support for platforms: Android, iOS
Pass static analysis
0 / 30

0/30 points: code has no errors, warnings, lints, or formatting issues

Found 8 issues. Showing the first 2:

ERROR: 2 positional argument(s) expected, but 1 found.

lib/src/models/card.dart:55:38

   ╷
55 │       return _ccValidator.validateCVV(cvc, cardType: cardType).isValid;
   │                                      ^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/models/card.dart

ERROR: The named parameter 'cardType' isn't defined.

lib/src/models/card.dart:55:44

   ╷
55 │       return _ccValidator.validateCVV(cvc, cardType: cardType).isValid;
   │                                            ^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/models/card.dart

Support up-to-date dependencies
10 / 20

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

PackageConstraintCompatibleLatest
awesome_card^1.1.01.1.51.1.5
credit_card_validator^1.1.01.2.01.2.0
flutterflutter0.0.00.0.0
flutter_slidable^0.5.70.5.70.6.0
http^0.12.20.12.20.13.3
mask_text_input_formatter^1.2.11.2.11.2.1
simple_animations^2.4.22.5.13.1.1
supercharged^1.12.01.12.02.0.0
uni_links^0.4.00.4.00.5.1
url_launcher^5.7.105.7.106.0.3
Transitive dependencies
PackageConstraintCompatibleLatest
characters-1.1.01.1.0
charcode-1.2.01.2.0
collection-1.15.01.15.0
credit_card_type_detector-1.1.01.1.0
flutter_web_plugins-0.0.00.0.0
http_parser-3.1.44.0.0
js-0.6.30.6.3
meta-1.3.01.3.0
path-1.8.01.8.0
plugin_platform_interface-1.0.32.0.0
sa_v1_migration-1.1.21.1.2
sky_engine-0.0.990.0.99
source_span-1.8.11.8.1
string_scanner-1.1.01.1.0
supercharged_dart-1.4.02.0.0
term_glyph-1.2.01.2.0
typed_data-1.3.01.3.0
url_launcher_linux-0.0.1+42.0.0
url_launcher_macos-0.0.1+92.0.0
url_launcher_platform_interface-1.0.92.0.2
url_launcher_web-0.1.5+32.0.0
url_launcher_windows-0.0.1+32.0.0
vector_math-2.1.02.1.0

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

Found 6 issues. Showing the first 2:

The constraint `^0.5.7` on flutter_slidable does not support the stable version `0.6.0`, that was published 24 days ago.

When flutter_slidable is 30 days old, this package will no longer be awarded points in this category.

Try running dart pub upgrade --major-versions flutter_slidable to update the constraint.

The constraint `^0.12.2` on http does not support the stable version `0.13.0`.

Try running dart pub upgrade --major-versions http to update the constraint.

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

Support sound null safety
0 / 20

0/20 points: Package does not opt in to null safety.

Package language version (indicated by the sdk constraint `>=2.7.0 <3.0.0`) is less than 2.12.

Consider migrating.

Analysed with Pana 0.16.0, Flutter 2.0.6, Dart 2.12.3.

133
likes
60
pub points
95%
popularity

The only native Stripe library for Flutter. Has complete support for SCA/PSD2, payment intents and the newest Stripe features.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

lars.dahl@gmail.com

License

BSD (LICENSE)

Dependencies

awesome_card, credit_card_validator, flutter, flutter_slidable, http, mask_text_input_formatter, simple_animations, supercharged, uni_links, url_launcher

More

Packages that depend on stripe_sdk