Skip to content

Commit

Permalink
Fixed calling non exists getCountry to getCountryId
Browse files Browse the repository at this point in the history
  • Loading branch information
krejcif committed Oct 12, 2016
1 parent bc9df94 commit 18da140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Authorizenet/Model/Authorizenet.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ protected function buildRequest(\Magento\Framework\DataObject $payment)
->setXCity($billing->getCity())
->setXState($billing->getRegion())
->setXZip($billing->getPostcode())
->setXCountry($billing->getCountry())
->setXCountry($billing->getCountryId())
->setXPhone($billing->getTelephone())
->setXFax($billing->getFax())
->setXCustId($order->getCustomerId())
Expand All @@ -352,7 +352,7 @@ protected function buildRequest(\Magento\Framework\DataObject $payment)
->setXShipToCity($shipping->getCity())
->setXShipToState($shipping->getRegion())
->setXShipToZip($shipping->getPostcode())
->setXShipToCountry($shipping->getCountry());
->setXShipToCountry($shipping->getCountryId());
}

$request->setXPoNum($payment->getPoNumber())
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Authorizenet/Model/Directpost/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function setDataFromOrder(
->setXCity(strval($billing->getCity()))
->setXState(strval($billing->getRegion()))
->setXZip(strval($billing->getPostcode()))
->setXCountry(strval($billing->getCountry()))
->setXCountry(strval($billing->getCountryId()))
->setXPhone(strval($billing->getTelephone()))
->setXFax(strval($billing->getFax()))
->setXCustId(strval($billing->getCustomerId()))
Expand Down Expand Up @@ -151,7 +151,7 @@ public function setDataFromOrder(
)->setXShipToZip(
strval($shipping->getPostcode())
)->setXShipToCountry(
strval($shipping->getCountry())
strval($shipping->getCountryId())
);
}

Expand Down

0 comments on commit 18da140

Please sign in to comment.