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 ...@@ -190,7 +190,7 @@ class AdyenInitiateTerminalApi implements AdyenInitiateTerminalApiInterface
} }
$request = $this->addSaleToAquirerData($request, $quote); $request = $this->addSaleToAcquirerData($request, $quote);
$quote->getPayment()->getMethodInstance()->getInfoInstance()->setAdditionalInformation( $quote->getPayment()->getMethodInstance()->getInfoInstance()->setAdditionalInformation(
'serviceID', 'serviceID',
...@@ -239,13 +239,13 @@ class AdyenInitiateTerminalApi implements AdyenInitiateTerminalApiInterface ...@@ -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 * When upgrading to new version of library we can use the client methods
* @param $request * @param $request
* @param $quote * @param $quote
* @return mixed * @return mixed
*/ */
public function addSaleToAquirerData($request, $quote) public function addSaleToAcquirerData($request, $quote)
{ {
$customerId = $this->getCustomerId($quote); $customerId = $this->getCustomerId($quote);
......
...@@ -96,11 +96,11 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase ...@@ -96,11 +96,11 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase
} }
/** @throws \Exception */ /** @throws \Exception */
public function testAddSaleToAquirerData() public function testAddSaleToAcquirerData()
{ {
$quote = $this->getSimpleMock(\Magento\Quote\Model\Quote::class); $quote = $this->getSimpleMock(\Magento\Quote\Model\Quote::class);
$request = []; $request = [];
$result = $this->adyenInitiateTerminalApi->addSaleToAquirerData($request, $quote); $result = $this->adyenInitiateTerminalApi->addSaleToAcquirerData($request, $quote);
$appInfo = [ $appInfo = [
'applicationInfo' => [ 'applicationInfo' => [
...@@ -129,7 +129,7 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase ...@@ -129,7 +129,7 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase
$this->assertEquals($resultArrayExpected, $result); $this->assertEquals($resultArrayExpected, $result);
} }
public function testAddSaleToAquirerDataLoggedInCustomer() public function testAddSaleToAcquirerDataLoggedInCustomer()
{ {
$quoteMock = $this->getMockBuilder('Magento\Quote\Model\Quote') $quoteMock = $this->getMockBuilder('Magento\Quote\Model\Quote')
->disableOriginalConstructor() ->disableOriginalConstructor()
...@@ -152,7 +152,7 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase ...@@ -152,7 +152,7 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase
->willReturn(self::CUSTOMER_EMAIL); ->willReturn(self::CUSTOMER_EMAIL);
$request = []; $request = [];
$result = $this->adyenInitiateTerminalApi->addSaleToAquirerData($request, $quoteMock); $result = $this->adyenInitiateTerminalApi->addSaleToAcquirerData($request, $quoteMock);
$appInfo = [ $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