Official release for MangoPay API v2 (http://docs.mangopay.com/)
Added features:
• New payment methods allowing the management of Hook projects with different EventType.
Documentation: http://docs.mangopay.com/api-references/notifications
• Addition of 5 new types of BankAccounts available (IBAN,GB, US, CA, Other).
Documentation: http://docs.mangopay.com/api-references/bank-accounts/
Changes:
• Add new property "Details" for BankAccount entity and move properties IBAN and BIC to BankAccountDetailsIBAN class.
Examples of create new BankAccount objects:
IBAN type:
$account = new \MangoPay\BankAccount();
$account->OwnerName = 'Owner name';
$account->OwnerAddress = 'Owner address';
$account->Details = new \MangoPay\BankAccountDetailsIBAN();
$account->Details->IBAN = 'FR7618829754160173622224154';
$account->Details->BIC = 'CMBRFR2BCME';
GB type:
$account = new \MangoPay\BankAccount();
$account->OwnerName = 'Owner name';
$account->OwnerAddress = 'Owner address';
$account->Details = new \MangoPay\BankAccountDetailsGB();
$account->Details->AccountNumber = '234234234234';
$account->Details->SortCode = '234334';