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.
Copy
Ask AI
<?phprequire_once 'vendor/autoload.php';use MangoPay\MangoPayApi;use MangoPay\Libraries\ResponseException as MGPResponseException;use MangoPay\Libraries\Exception as MGPException;$api = new MangoPayApi();$api->Config->ClientId = 'your-mangopay-client-id';$api->Config->ClientPassword = 'your-mangopay-api-key';$api->Config->TemporaryFolder = 'tmp/';$api->Config->UKHeaderFlag = true;