We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 1e0bbc7f authored by alessio's avatar alessio

fix typo saleToAcquirerData

parent 1861b02a
......@@ -190,7 +190,7 @@ class AdyenInitiateTerminalApi implements AdyenInitiateTerminalApiInterface
}
$request = $this->addSaleToAquirerData($request, $quote);
$request = $this->addSaleToAcquirerData($request, $quote);
$quote->getPayment()->getMethodInstance()->getInfoInstance()->setAdditionalInformation(
'serviceID',
......@@ -239,13 +239,13 @@ class AdyenInitiateTerminalApi implements AdyenInitiateTerminalApiInterface
}
/**
* Add SaleToAquirerData for storing for recurring transactions and able to track platform and version
* Add SaleToAcquirerData for storing for recurring transactions and able to track platform and version
* When upgrading to new version of library we can use the client methods
* @param $request
* @param $quote
* @return mixed
*/
public function addSaleToAquirerData($request, $quote)
public function addSaleToAcquirerData($request, $quote)
{
$customerId = $this->getCustomerId($quote);
......
......@@ -96,11 +96,11 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase
}
/** @throws \Exception */
public function testAddSaleToAquirerData()
public function testAddSaleToAcquirerData()
{
$quote = $this->getSimpleMock(\Magento\Quote\Model\Quote::class);
$request = [];
$result = $this->adyenInitiateTerminalApi->addSaleToAquirerData($request, $quote);
$result = $this->adyenInitiateTerminalApi->addSaleToAcquirerData($request, $quote);
$appInfo = [
'applicationInfo' => [
......@@ -129,7 +129,7 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase
$this->assertEquals($resultArrayExpected, $result);
}
public function testAddSaleToAquirerDataLoggedInCustomer()
public function testAddSaleToAcquirerDataLoggedInCustomer()
{
$quoteMock = $this->getMockBuilder('Magento\Quote\Model\Quote')
->disableOriginalConstructor()
......@@ -152,7 +152,7 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase
->willReturn(self::CUSTOMER_EMAIL);
$request = [];
$result = $this->adyenInitiateTerminalApi->addSaleToAquirerData($request, $quoteMock);
$result = $this->adyenInitiateTerminalApi->addSaleToAcquirerData($request, $quoteMock);
$appInfo = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment