stripe 1.3.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 81

Stripe Dart

Codeship Status for exitlive/stripe-dart

Stripe API (version 2016-07-06) implemented in dart.

Most of the model class documentations have been taken from the stripe documentation.

This implementation is based on the official Stripe Java and NodeJS API wrappers and written as a proper native dart library.

Usage

import "package:stripe/stripe.dart";

main() async {

  var cardCreation = new CardCreation()
      ..number = '123123123';

  var customerCreation = new CustomerCreation()
      ..description = 'Customer for test@example.com'
      ..card = card;
      
  var customer = await customerCreation.create();

}

Tests

The majority of the tests rely on connecting to a real Stripe Account in testmode. Therefore all tests expect your API Test Secret Key as the first script argument and your account must be set to US. Testcoverage is limited (some tests would require livemode and or OAuth).

License

Copyright (c) 2014 Matias Meno (m@tias.me), Martin Flucka (martin.flucka@gmail.com)

The MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1.3.0 (2018-07-16)

  • Make changes to be dart 2.0 compatible

1.2.2 (2016-10-20)

Features:

  • upgrade dependencies

Bug fixes:

  • change card type to card brand

1.2.1 (2016-08-08)

Features:

  • add CHANGELOG.md (closes #32)
  • add default source to customer (#33, @rbellens)

Bug fixes:

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  stripe: ^1.3.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:stripe/stripe.dart';
  
Version Uploaded Documentation Archive
1.3.0 Jul 16, 2018 Go to the documentation of stripe 1.3.0 Download stripe 1.3.0 archive
1.2.2 Oct 20, 2016 Go to the documentation of stripe 1.2.2 Download stripe 1.2.2 archive
1.2.1 Aug 8, 2016 Go to the documentation of stripe 1.2.1 Download stripe 1.2.1 archive
1.2.0 Jul 26, 2016 Go to the documentation of stripe 1.2.0 Download stripe 1.2.0 archive
1.1.6 Dec 9, 2015 Go to the documentation of stripe 1.1.6 Download stripe 1.1.6 archive
1.1.5 Nov 30, 2015 Go to the documentation of stripe 1.1.5 Download stripe 1.1.5 archive
1.1.4 Nov 30, 2015 Go to the documentation of stripe 1.1.4 Download stripe 1.1.4 archive
1.1.3 Jul 13, 2015 Go to the documentation of stripe 1.1.3 Download stripe 1.1.3 archive
1.1.2 Jun 15, 2015 Go to the documentation of stripe 1.1.2 Download stripe 1.1.2 archive
1.1.1 Mar 30, 2015 Go to the documentation of stripe 1.1.1 Download stripe 1.1.1 archive

All 12 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
74
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
81
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms: other

Primary library: package:stripe/stripe.dart with components: io, mirrors.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use stripe.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.9.0 <3.0.0
http ^0.11.2 0.11.3+17 0.12.0
logging ^0.11.0 0.11.3+2
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
http_parser 3.1.3
meta 1.1.6
path 1.6.2
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
Dev dependencies
test ^1.0.0