diff --git a/app/code/Magento/Paypal/Model/Api/Nvp.php b/app/code/Magento/Paypal/Model/Api/Nvp.php index 9e3018940fcee..8ed980ddd395a 100644 --- a/app/code/Magento/Paypal/Model/Api/Nvp.php +++ b/app/code/Magento/Paypal/Model/Api/Nvp.php @@ -846,7 +846,7 @@ public function callGetExpressCheckoutDetails() $request = $this->_exportToRequest($this->_getExpressCheckoutDetailsRequest); $response = $this->call(self::GET_EXPRESS_CHECKOUT_DETAILS, $request); $this->_importFromResponse($this->_paymentInformationResponse, $response); - $this->_exportAddressses($response); + $this->_exportAddresses($response); } /** @@ -1463,8 +1463,21 @@ protected function _exportLineItems(array &$request, $i = 0) * * @param array $data * @return void + * @deprecated 100.2.2 typo in method name + * @see _exportAddresses */ protected function _exportAddressses($data) + { + $this->_exportAddresses($data); + } + + /** + * Create billing and shipping addresses basing on response data + * + * @param array $data + * @return void + */ + protected function _exportAddresses($data) { $address = new \Magento\Framework\DataObject(); \Magento\Framework\DataObject\Mapper::accumulateByMap($data, $address, $this->_billingAddressMap);