Skip to content

continuous-software/mrcelgnairt-edon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

mrcelgnairt-edone

Installation

npm install -s mrcelgnairt

Usage

var MRCelgnairT = require('mrcelgnairt');
var mrcelgnairt = new MRCelgnairT({
  host: 'https://mydomain.mrcelgnairt.com',
  username: 'johndoe',
  password: 'p@$sw0ro|'
}, function(error, clientSoap) {
  console.log(mrcelgnairt, clientSoap)
});

API


mrcelgnairt#CreateProspect(parameters, callback)

options

Example

clientExtended.CreateProspect({
  productTypeID: 1,
  firstName: 'John',
  lastName: 'Doe',
  address1: '123, Main Street',
  address2: '',
  city: 'Anytown',
  state: 'Everystate',
  zip: 1000,
  country: 'United States',
  phone: '123,
  email: '[email protected]',
  ip: '127.0.0.1',
  affiliate: '',
  subAffiliate: '',
  internalID: 24,
  customField1: '',
  customField2: '',
  customField3: '',
  customField4: '',
  customField5: ''
}, function(error, result) {
  console.log(error, result);
});

mrcelgnairt#CreateSubscription(parameters, callback)

options

Example

clientExtended.CreateSubscription({
  planID: 168,
  trialPackageID: 84,
  chargeForTrial: true,
  campaignID: 42,
  firstName: 'John',
  lastName: 'Doe',
  address1: '123, Main Street',
  address2: '',
  city: 'Anytown',
  state: 'Everystate',
  zip: 1000,
  country: 'United States',
  phone: '123,
  email: '[email protected]',
  sendConfirmationEmail: true,
  ip: '127.0.0.1',
  affiliate: '',
  subAffiliate: '',
  internalID: 24,
  prospectID: 12,
  paymentType: '',
  creditCard: '4300-0000-0000-0000',
  cvv: 123,
  expMonth: 04,
  expYear: 2014,
  description: 'Lorem ipsum dolores sit amet',
}, function(error, result) {
  console.log(error, result);
});

mrcelgnairt#CreateNewSubscriptionExistingCustomer

options

Example

clientExtended.CreateNewSubscriptionExistingCustomer({
  prospectID: 12,
  billingID: 276,
  planID: 552,
  trialPackageID: 1004,
  chargeForTrial: true,
  sendConfirmationEmail: true
}, function(error, result) {
  console.log(error, result);
});

About

Node.js SDK for MRC elgnairT.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published