MangoPay/ApiUsers.php
public function CreateBankAccount($userId, $bankAccount, $idempotencyKey = null)
    {
        $type = $this->GetBankAccountType($bankAccount);
        return $this->CreateObject('users_createbankaccounts_' . $type, $bankAccount, '\MangoPay\BankAccount', $userId, null, $idempotencyKey);
    }
public function CreateBankAccount($userId, $bankAccount, $idempotencyKey = null)
    {
        $type = $this->GetBankAccountType($bankAccount);
        return $this->CreateObject('users_createbankaccounts_' . $type, $bankAccount, '\MangoPay\BankAccount', $userId, null, $idempotencyKey);
    }
public function CreateBankAccount ( $ userId , $ bankAccount , $ idempotencyKey = null ) { $ type = $ this -> GetBankAccountType ( $ bankAccount ) ; return $ this -> CreateObject ( 'users_createbankaccounts_' . $ type , $ bankAccount , '\MangoPay\BankAccount' , $ userId , null , $ idempotencyKey ) ; }
Create bank account for user
@param string $userId User Id
@param \MangoPay\BankAccount $bankAccount Entity of bank account object
@return \MangoPay\BankAccount Create bank account object
Create bank account for user