Skip to content

Commit

Permalink
Merge pull request Credit-Jeeves#5 from kostya-p-dev/8.04/RT-5409_add…
Browse files Browse the repository at this point in the history
…_merchant_subaccount

RT-5409 fixed submerchant eft account API URL
  • Loading branch information
kostya-p-dev committed Mar 28, 2018
2 parents d5cca7f + c1553c1 commit da21a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Paysafe/MerchantAccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ function addSubMerchantEftBankAccount(MerchantEftBankAccount $bankAccount)
));
$request = new Request(array(
'method' => Request::POST,
'uri' => $this->prepareURI('/accounts/' . $this->client->getAccount() . '/eftbankaccounts'),
'uri' => $this->prepareURI('/merchants/' . $bankAccount->merchantId . '/eftbankaccounts'),
'body' => $bankAccount
));
$response = $this->client->processRequest($request);
Expand All @@ -338,7 +338,7 @@ function addMerchantEftBankAccount(MerchantEftBankAccount $bankAccount)
));
$request = new Request(array(
'method' => Request::POST,
'uri' => $this->prepareURI('/merchants/' . $bankAccount->merchantId . '/eftbankaccounts'),
'uri' => $this->prepareURI('/accounts/' . $this->client->getAccount() . '/eftbankaccounts'),
'body' => $bankAccount
));
$response = $this->client->processRequest($request);
Expand Down

0 comments on commit da21a99

Please sign in to comment.