BankAccounts - Mangopay/mangopay2-ruby-sdk GitHub Wiki
Property | Type |
---|---|
Id | Integer |
Tag | String |
CreationDate | Time |
UserId | Integer |
Type | String |
OwnerName | String |
OwnerAddress | String |
IBAN | String |
BIC | String |
- user_id: The id of the User you want to add a BankAccount
- bank_details: A hash:
- Type
- OwnerName
- OwnerAddress
- IBAN
- BIC
- Tag
A BankAccount Object
MangoPay::BankAccount.create(78329, {
Type: 'IBAN',
OwnerName: 'John',
OwnerAddress: 'Here',
IBAN: 'FR7630004000031234567890143',
BIC: 'BNPAFRPP',
Tag: 'Test Time'
})
- user_id: the id of the user you attached the bank detail to
- bank_detail_id: the id of the bank detail
A BankAccount Object
MangoPay::BankAccount.fetch(87323, 32132)
- user_id: the id of the user you want to fetch the bank details from
An Array of BankAccount Objects
MangoPay::BankAccount.fetch(new_iban_bank_detail['UserId'])