Skip to content

Commit

Permalink
Update Address for API v2.01
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Bailey committed Feb 4, 2016
1 parent bda6dbb commit 4a9de74
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion demos/workflow/scripts/bankaccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
$BankAccount->Details->IBAN = "FR7618829754160173622224154";
$BankAccount->Details->BIC = "CMBRFR2BCME";
$BankAccount->OwnerName = "Joe Bloggs";
$BankAccount->OwnerAddress = "1 Mangopay Street";
$BankAccount->OwnerAddress = new \MangoPay\Address();
$BankAccount->OwnerAddress->AddressLine1 = 'Address line 1';
$BankAccount->OwnerAddress->AddressLine2 = 'Address line 2';
$BankAccount->OwnerAddress->City = 'City';
$BankAccount->OwnerAddress->Country = 'FR';
$BankAccount->OwnerAddress->PostalCode = '11222';
$BankAccount->OwnerAddress->Region = 'Region';
$result = $mangoPayApi->Users->CreateBankAccount($UserId, $BankAccount);

//Display result
Expand Down

0 comments on commit 4a9de74

Please sign in to comment.