ClientId
and an API key – if you don’t have these, contact Sales to get access to the Mangopay DashboardKey | Type | Default value | Description |
---|---|---|---|
client_id | string | None | Your Mangopay ClientId – can be found in the Dashboard. |
apiKey | string | None | Your Mangopay API key – can be found in the Dashboard. |
api_url | string | https://api.mangopay.com/ | The API production URL. |
api_sandbox_url | string | https://api.sandbox.mangopay.com/v2.01/ | The API sandbox URL. |
sandbox | boolean | None | To set it to Sandbox, set it as True. To set it to Production, set it as False. |
timeout | float | 30.0 | Request timeout in seconds. |
storage_strategy | string | StaticStorageStrategy() | Mechanism of how the caching works. There are 2 options: StaticStorageStrategy() for in-memory cache and FileStorageStrategy() for file-based cache. |
proxies | string | None | Dictionary mapping protocol or protocol and host name to the URL of the proxy. |
uk_header_flag | 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 . |
StaticStorageStrategy()
saves the token in memory. If no storage strategy is specified, this method is used by default.FileStorageStrategy()
saves the token in a temporary file.idempotency_key
parameter to your function.
For more information, see the Idempotency article.
page
and the per_page
parameters, only the first 10 elements will be displayed.page
and per_page
keys.
As a result, the output is paginated, and the total number of items and the total number of pages is provided.
For example, with the List all Users endpoint: