<?php
require_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-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';
try {
$response = $api->Clients->GetWallets();
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
[
{
"Balance": {
"Currency": "EUR",
"Amount": 1027
},
"Currency": "EUR",
"FundsType": "FEES",
"Id": "FEES_EUR",
"Tag": null,
"CreationDate": 1658926202
},
{
"Balance": {
"Currency": "EUR",
"Amount": 5000
},
"Currency": "EUR",
"FundsType": "CREDIT",
"Id": "CREDIT_EUR",
"Tag": null,
"CreationDate": 1658926202
}
]
<?php
require_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-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';
try {
$response = $api->Clients->GetWallets();
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
[
{
"Balance": {
"Currency": "EUR",
"Amount": 1027
},
"Currency": "EUR",
"FundsType": "FEES",
"Id": "FEES_EUR",
"Tag": null,
"CreationDate": 1658926202
},
{
"Balance": {
"Currency": "EUR",
"Amount": 5000
},
"Currency": "EUR",
"FundsType": "CREDIT",
"Id": "CREDIT_EUR",
"Tag": null,
"CreationDate": 1658926202
}
]
200
Show properties
Show properties
Show properties
1260
whereas JPY 12 would be represented as just 12
).DEFAULT
, FEES
, CREDIT
The type of funds in the wallet:DEFAULT
– Regular funds for user-owned wallets. Wallets with this FundsType
cannot have a negative balance.FEES
– Fees Wallet, for fees collected by the platform, specific to the Client Wallet object.CREDIT
– Repudiation Wallet, for funds for the platform’s dispute management, specific to the Client Wallet object.FundsType
_Currency
(e.g., FEES_EUR
).[
{
"Balance": {
"Currency": "EUR",
"Amount": 1027
},
"Currency": "EUR",
"FundsType": "FEES",
"Id": "FEES_EUR",
"Tag": null,
"CreationDate": 1658926202
},
{
"Balance": {
"Currency": "EUR",
"Amount": 5000
},
"Currency": "EUR",
"FundsType": "CREDIT",
"Id": "CREDIT_EUR",
"Tag": null,
"CreationDate": 1658926202
}
]
<?php
require_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-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';
try {
$response = $api->Clients->GetWallets();
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
Was this page helpful?