Skip to content

TeamGrid/meteor-fastbill-automatic

Repository files navigation

teamgrid:fastbill-automatic

Meteor implementation of the FastBill-Automatic API

Installation

    meteor add teamgrid:fastbill-automatic

Usage

Initialize a new API-Connection

var api = new FastBillAutomatic('ApiEmail', 'ApiKey');

Make an api call (see API Documentation for other methods and parameters)

var articles = api['customer.create'](customerObj); // parameters are always passed as a single object

Register for notifications

api.registerNotifications('/fastbillnotifications'); // registers this url to process webhooks. Set this url to the notifications-url in fastbill

Listen on notifications of type payment.failed. See the Notifications-Documentation to get a list of all notifications.

FastBillAutomaticAPI.on('payment.failed', function(data){
  console.log(data);
});

About

Meteor implementation of the FastBill-Automatic API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published