Mongoose Subscriptions Braintree
Braintree processor for https://github.com/enhancv/mongoose-subscriptions
Useage
yarn add mongoose-subscription-braintree
const braintree = ;const Customer = Customer;const BraintreeProcessor = ; const gateway = braintree;const plan = processorId: 'id-plan' price: 4 billingFrequency: 3 level: 2; // Define a processor using braintree gateway and some existing plans// Currently the plans need to be input as plain objects to the processor// and kept in sync with braintree plansconst processor = gateway plan; const customer = ... ;customer;