Meteor implementation of the FastBill-Automatic API
meteor add teamgrid:fastbill-automatic
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);
});