chargebee_dart 0.0.3

  • Readme
  • Changelog
  • Installing
  • 0

chargebee_dart #

A Dart wrapper for the Chargebee iframe API

Usage #

A simple usage example:

import 'package:chargebee_dart/chargebee_dart.dart';

main() async {
  final loader = await ChargeBee.embed(url, siteName);
  loader.load();
  loader.onAddIframe.then((iframe) {});
  loader.onCancel.then((iframe) {});
  loader.onSuccess.then((iframe) {});
  loader.onLoad.then((dimensions) {
    // dimensions.iframe
    // dimensions.width
    // dimensions.height
  });
  resizeIframeSubscription = _loader.onResize.listen((dimensions) {
    // dimensions.iframe
    // dimensions.width
    // dimensions.height
  });

  ...

  // when done
  loader.dispose();
  resizeIframeSubscription.cancel();
}

Changelog #

0.0.3 #

  • Dart 2 stable

0.0.2 #

  • fix onSuccess
  • Add onError

0.0.1 #

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

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


dependencies:
  chargebee_dart: ^0.0.3

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:chargebee_dart/chargebee_dart.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
0
Learn more about scoring.

This package is not analyzed, because it is discontinued.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <3.0.0