Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit 856bc68

Browse files
committed
fix: typo error
1 parent 1406f90 commit 856bc68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/community/UOL/PagSeguro/Model/PaymentMethod.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ private function setSenderPhone($payment)
346346
$phone = null;
347347
if ($this->order->getBillingAddress() && $this->order->getBillingAddress()->getTelephone()) {
348348
$phone = $this->helper->formatPhone($this->order->getBillingAddress()->getTelephone());
349-
} else if ($this->order->getBillingAddress() && $this->order->getBillingAddress()->getTelephone()) {
350-
$phone = $this->helper->formatPhone($this->order->getBillingAddress()->getTelephone());
349+
} else if ($this->order->getShippingAddress() && $this->order->getShippingAddress()->getTelephone()) {
350+
$phone = $this->helper->formatPhone($this->order->getShippingAddress()->getTelephone());
351351
}
352352
if ($phone) {
353353
$payment->setSender()->setPhone()->withParameters($phone['areaCode'], $phone['number']);

0 commit comments

Comments
 (0)