ClientId
and an API key – if you don’t have these, contact Sales to get access to the Mangopay DashboardKey | Type | Default value | Description |
---|---|---|---|
clientId | string | null | Your Mangopay ClientId – can be found in the Dashboard. |
clientApiKey | string | null | Your Mangopay API key – can be found in the Dashboard. |
baseUrl | string | http://api.sandbox.mangopay.com/ | The API sandbox URL. Set to the sandbox environment by default. To enable production environment, set it to http://api.mangopay.com/ |
debugMode | boolean | false | Activates the debug mode. Recommended only in Sandbox. |
logClass | function() {console.log(arguments)} | function() {console.log(arguments)} | |
connectionTimeout | integer | 30000 | Set the time to wait (in milliseconds) while trying to establish a connection before terminating the attempt and generating an error. |
responseTimeout | integer | 80000 | Set response timeout limit (in milliseconds). |
apiVersion | string | v2.01 | The API version. |
errorHandler | null | function(options, err) {console.error(options, err)} | Set a custom error handler. |
ukHeaderFlag | boolean | false | Platforms that have contracted with Mangopay’s UK entity (MANGOPAY U.K. LIMITED) must include the following header in all requests. If you’re using an SDK, you need to set it to true . |
options.parameters
to specify these options: