PaidUpProductConnect.organizationResponseUpdate()

authorizate new organizations to be part of paidUp

Usage

Hover over inputs/exits for more info.

var PaidUpProductConnect = require('paidup-product-connect');


// authorizate new organizations to be part of paidUp

PaidUpProductConnect.organizationResponseUpdate({

baseUrl: 'http://localhost:9007',

token: 'secret-word',

organizationId: 'xxxyyyxxxx',

paymentId: 'xxxyyyxxxx',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (response) {

 

},

});

Inputs

baseUrl required

Url microservice.

'http://localhost:9007'
token required

secret word for authenticate microservice.

'secret-word'
organizationId required

id organization.

'xxxyyyxxxx'
paymentId required

id payment service (stripe, paypal).

'xxxyyyxxxx'

Exits

error

An unexpected error occurred.

{ status: 500,
  message: '[{"maybe some JSON": "like this"}]  (but could be any string)' }
success

OK.

{ status: 200, body: { ok: 1, nModified: 1, n: 1 } }