Functions for handling 3rd party service provider requests

Methods

(async, inner) provider(req, res) → {Promise}

The provider method looks up a provider module method matching the provider request parameter and passes the req/res objects as argument to the matched method.

The response from the method is returned with the HTTP response.

Parameters:
NameTypeDescription
reqObject

HTTP request.

resObject

HTTP response.

req.paramsObject

Request parameter.

params.signerstring

Provider module to handle the request.

Returns:

The promise resolves into the response from the provider modules method.

Type: 
Promise