Overview
Introduction
The Mangopay API is based on REST principles, providing a simple and secure way to process payment flows.
To work with our API, you can:
- Use the HTTP/REST endpoints
- Take advantage of our SDKs
- Make use of our official integrations
Environments
Mangopay provides two environments:
Production | Sandbox |
---|---|
https://api.mangopay.com | https://api.sandbox.mangopay.com |
The Mangopay API accepts and returns:
Content-Type | application/json |
---|---|
Encoding | UTF-8 JSON |
Note – Endpoints requiring a different Content-Type
There are two endpoints that require the application/x-www-form-urlencoded Content-Type:
- The OAuth token endpoint – see OAuth 2.0 authentication
- The Tokenize the card endpoint, which is a URL returned by the API
UK platforms
Platforms that have contracted with Mangopay’s UK entity must include the following header in all requests in Production:
Key | Value |
---|---|
x-tenant-id | uk |
There is no equivalent for platforms contracting with other Mangopay entities.
If you’re using an SDK, you need to change the configuration during initialization by setting the UK header flag value to true.
Was this page helpful?