Skip to content

IGLU-Agency/stripe-dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stripe Dart Library

The Stripe Dart library provides convenient access to the Stripe API from applications written in server-side Dart.

For collecting customer and payment information in Flutter app, use our Stripe Flutter SDK.

Documentation

See the stripe-node API docs for Node.js.

Usage

The package needs to be configured with your account's secret key, which is available in the Stripe Dashboard. Require it with the key's value:

var stripe = Stripe('sk_test_...');
var result = await stripe.core.customers.create(params: {
  "email": '[email protected]',
});

Configuration

Initialize with config object

The package can be initialized with several options:

var stripe = Stripe('sk_test_...', {
  apiVersion: '2020-03-02'
});
Option Default Description
apiVersion null Stripe API version to be used. If not set the account's default version will be used.

Releases

No releases published

Packages

No packages published

Languages