stripe_js 7.2.0
stripe_js: ^7.2.0 copied to clipboard
Stripe.js bindings for dart. This package is used by Stripe web so that the Stripe js sdk can be invoked directly.
We analyzed this package 3 days ago, and awarded it 80 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
1512 out of 2106 API elements (71.8 %) have documentation comments.
Some symbols that are missing documentation: stripe_api, stripe_api.ApplePayRecurringPaymentTimeInterVal, stripe_api.AuBecsDebit.AuBecsDebit.fromJson, stripe_api.AuBecsDebit.AuBecsDebit.new, stripe_api.BacsDebit.BacsDebit.fromJson.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Web
These platforms are not supported:
Package not compatible with platform Android
Because:
package:stripe_js/stripe_js.dartthat imports:package:stripe_js/src/loader/stripe_loader.dartthat imports:dart:js_interop_unsafe
Package not compatible with platform iOS
Because:
package:stripe_js/stripe_js.dartthat imports:package:stripe_js/src/loader/stripe_loader.dartthat imports:dart:js_interop_unsafe
Package not compatible with platform Windows
Because:
package:stripe_js/stripe_js.dartthat imports:package:stripe_js/src/loader/stripe_loader.dartthat imports:dart:js_interop_unsafe
Package not compatible with platform Linux
Because:
package:stripe_js/stripe_js.dartthat imports:package:stripe_js/src/loader/stripe_loader.dartthat imports:dart:js_interop_unsafe
Package not compatible with platform macOS
Because:
package:stripe_js/stripe_js.dartthat imports:package:stripe_js/src/loader/stripe_loader.dartthat imports:dart:js_interop_unsafe
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 58 issues. Showing the first 2:
ERROR: Const variables must be initialized with a constant value.
lib/src/api/payment_intents/payment_intent.g.dart:180:3
╷
180 │ PaymentMethodType.giropay: 'giropay',
│ ^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/api/payment_intents/payment_intent.g.dart
ERROR: The keys in a const map literal must be constant.
lib/src/api/payment_intents/payment_intent.g.dart:180:3
╷
180 │ PaymentMethodType.giropay: 'giropay',
│ ^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/api/payment_intents/payment_intent.g.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
freezed_annotation |
^3.1.0 |
3.1.0 | 3.1.0 | |
json_annotation |
^4.9.0 |
4.10.0 | 4.10.0 | |
meta |
^1.0.0 |
1.18.1 | 1.18.1 | |
web |
^1.0.0 |
1.1.1 | 1.1.1 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
collection |
- | 1.19.1 | 1.19.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 13 errors:
CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE-lib/src/api/payment_intents/payment_intent.g.dart:180:3- Const variables must be initialized with a constant value.NON_CONSTANT_MAP_KEY-lib/src/api/payment_intents/payment_intent.g.dart:180:3- The keys in a const map literal must be constant.UNDEFINED_ENUM_CONSTANT-lib/src/api/payment_intents/payment_intent.g.dart:180:21- There's no constant named 'giropay' in 'PaymentMethodType'.
Run dart pub downgrade and then dart 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.9, Dart 3.11.0.
Check the analysis log for details.