Skip to content

Commit 2821a28

Browse files
author
Stanislav Idolov
authored
ENGCOM-1581: [fix] typo in method name _exportAddress[s]es #15275
2 parents 660dea4 + dccefc4 commit 2821a28

File tree

1 file changed

+14
-1
lines changed
  • app/code/Magento/Paypal/Model/Api

1 file changed

+14
-1
lines changed

app/code/Magento/Paypal/Model/Api/Nvp.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ public function callGetExpressCheckoutDetails()
846846
$request = $this->_exportToRequest($this->_getExpressCheckoutDetailsRequest);
847847
$response = $this->call(self::GET_EXPRESS_CHECKOUT_DETAILS, $request);
848848
$this->_importFromResponse($this->_paymentInformationResponse, $response);
849-
$this->_exportAddressses($response);
849+
$this->_exportAddresses($response);
850850
}
851851

852852
/**
@@ -1463,8 +1463,21 @@ protected function _exportLineItems(array &$request, $i = 0)
14631463
*
14641464
* @param array $data
14651465
* @return void
1466+
* @deprecated 100.2.2 typo in method name
1467+
* @see _exportAddresses
14661468
*/
14671469
protected function _exportAddressses($data)
1470+
{
1471+
$this->_exportAddresses($data);
1472+
}
1473+
1474+
/**
1475+
* Create billing and shipping addresses basing on response data
1476+
*
1477+
* @param array $data
1478+
* @return void
1479+
*/
1480+
protected function _exportAddresses($data)
14681481
{
14691482
$address = new \Magento\Framework\DataObject();
14701483
\Magento\Framework\DataObject\Mapper::accumulateByMap($data, $address, $this->_billingAddressMap);

0 commit comments

Comments
 (0)