Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.02 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.02 KB

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);
});