Overview
TheMangoPayApi class is the main entry point for interacting with the Mangopay API. It provides access to all API managers and holds configuration and authorization data.
Constructor
__construct()
Creates a new instance of the MangoPayApi class with default configuration.Configuration Properties
Configuration instance containing API credentials and settings.
Manages OAuth authorization tokens for API requests.
Handles OAuth authentication methods.
PSR-3 logger interface for logging API requests and responses.
HTTP client used for making API requests.
Array holding rate limit data from X-RateLimit response headers.
API Manager Properties
Methods for handling API responses.
Methods for managing client accounts.
Methods for managing users (natural and legal).
Methods for managing wallets.
Methods for creating and managing transfers between wallets.
Methods for managing pay-ins (incoming payments).
Methods for managing pay-outs (outgoing payments to bank accounts).
Methods for managing refunds.
Methods for registering payment cards.
Methods for managing registered cards.
Methods for managing card pre-authorizations.
Methods for querying events.
Methods for managing webhooks.
Methods for managing KYC documents.
Methods for managing disputes.
Methods for managing dispute documents.
Methods for managing direct debit mandates.
Methods for generating and retrieving reports.
Methods for generating and retrieving reports (v2 API).
Methods for managing banking aliases.
Methods for managing bank accounts.
Methods for managing Ultimate Beneficial Owner (UBO) declarations.
Methods for managing repudiations.
Methods for managing virtual accounts.
Methods for accessing regulatory information.
Methods for managing deposits.
Methods for instant currency conversions.
Methods for managing identity verifications.
Methods for managing recipients.
Methods for managing settlements.
Methods
setLogger()
Sets a PSR-3 compatible logger for logging API requests and responses.A PSR-3 compatible logger instance.
getLogger()
Retrieves the current logger instance.The current PSR-3 logger instance.
setConfig()
Sets the configuration object for the API.The configuration object containing API credentials and settings.
getConfig()
Retrieves the current configuration object.The current configuration object.
setHttpClient()
Sets a custom HTTP client for making API requests.A custom HTTP client instance extending HttpBase.
getHttpClient()
Retrieves the current HTTP client instance.The current HTTP client instance.