Return phone number.
Note: PayPal returns a contact phone number only if your
Merchant Account Profile settings require that the buyer enter one.

@return string
167580
public function getShipToPhoneNumber()
    {
        $value = $this->getValue('PAYMENTREQUEST_0_SHIPTOPHONENUM');
        $requiredAddressFields = oxNew(\OxidEsales\Eshop\Application\Model\RequiredAddressFields::class);

        if (in_array('oxuser__oxfon', $requiredAddressFields->getRequiredFields())) {
            $phone = $this->getValue('PHONENUM');
            $value = !empty($phone) ? $phone : $value;
        }
        return $value;
    }
186093
public function getPaymentInformation($paymentType = null)
    {
        $paymentInformation = $this->_getField(self::$PAYMENT_INFORMATION);
        if (is_array($paymentInformation)) {
            if (!is_null($paymentType)) {
                $paymentType = strtoupper($paymentType);
                foreach ($paymentInformation as $singlePaymentInformation) {
                    if ($singlePaymentInformation['paymentType'] == $paymentType) {
                        return $singlePaymentInformation;
                    }
                }

                return Array();
            } else {
                return $paymentInformation;
            }
        } else {
            return Array();
        }
    }
742500
public function getRefundAction()
    {
        $order = $this->getOrder();
        $data = oxNew(\OxidEsales\PayPalModule\Model\Action\Data\OrderRefundActionData::class, $this->getRequest(), $order);
        $handler = oxNew(\OxidEsales\PayPalModule\Model\Action\Handler\OrderRefundActionHandler::class, $data);

        $action = oxNew(\OxidEsales\PayPalModule\Model\Action\OrderRefundAction::class, $handler, $order->getPayPalOrder());

        return $action;
    }
401429
protected function getListOrder()
    {
        $id = $this->getParam(0);
        $limit = $this->getLimit();

        if (!isset($id)) {
            return $this->order->getList(array('limit' => $limit));
        }

        if ($this->getParam('user')) {
            return $this->order->getList(array('user_id' => $id, 'limit' => $limit));
        }

        if ($this->getParam('status')) {
            return $this->order->getList(array('status' => $id, 'limit' => $limit));
        }

        if (!is_numeric($id)) {
            $this->errorAndExit($this->text('Invalid argument'));
        }

        if ($this->getParam('store')) {
            return $this->order->getList(array('store_id' => $id, 'limit' => $limit));
        }

        if ($this->getParam('shipping-address')) {
            return $this->order->getList(array('shipping_address' => $id, 'limit' => $limit));
        }

        if ($this->getParam('payment-address')) {
            return $this->order->getList(array('payment_address' => $id, 'limit' => $limit));
        }

        $result = $this->order->get($id);

        if (empty($result)) {
            $this->errorAndExit($this->text('Unexpected result'));
        }

        return array($result);
    }
223554
public function getOrderPaymentStatusCalculator()
    {
        if (is_null($this->orderPaymentStatusCalculator)) {
            $orderPaymentStatusCalculator = oxNew(\OxidEsales\PayPalModule\Model\OrderPaymentStatusCalculator::class);
            $this->setOrderPaymentStatusCalculator($orderPaymentStatusCalculator);
        }

        return $this->orderPaymentStatusCalculator;
    }
1186866
protected function _getPaymentId()
    {
        /** @var OxpsPaymorrowOxBasket|oxBasket $this */

        $sId = (string) $this->getPaymentId();

        if ( !empty( $sId ) ) {
            $sId = $this->_toUtf( $sId );
        } else {
            $sId = 'PaymentId';
        }

        return $sId;
    }
1118792
public function getPayPalSandboxUrl()
    {
        $url = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sPayPalSandboxUrl');
        if ($url) {
            $this->setPayPalSandboxUrl($url);
        }

        return $this->payPalSandboxUrl;
    }
66788
public function getOrderPaymentListCalculator()
    {
        if (is_null($this->orderPaymentListCalculator)) {
            $orderPaymentListCalculator = oxNew(\OxidEsales\PayPalModule\Model\OrderPaymentListCalculator::class);
            $this->setOrderPaymentListCalculator($orderPaymentListCalculator);
        }

        return $this->orderPaymentListCalculator;
    }
1066840
public function getPayPalPaymentDescription()
    {
        $desc = "";
        if (($payPalPayment = $this->getPayPalPayment())) {
            $desc = $payPalPayment->oxpayments__oxlongdesc->getRawValue();
        }

        return $desc;
    }
565631
private function setHolderPhone()
    {
        $addressData = ($this->getBillingAddress())
        ? $this->getBillingAddress()
        : $this->_order->getShippingAddress();

        if (! empty($addressData['telephone'])) {
            $phone = \UOL\PagSeguro\Helper\Data::formatPhone($addressData['telephone']);
            $this->_paymentRequest->setHolder()->setPhone()->withParameters(
                $phone['areaCode'],
                $phone['number']
            );
        }
    }
321921
public function getCellPhoneNumber()
    {
        $mobil     = null;
        $mobilsRaw = $this->getFlexiData($this->getApiURL(),
            ['detail' => 'custom:id,mobil,kontakty(primarni,mobil)', 'relations' => 'kontakty']);
        if (is_array($mobilsRaw)) {
            $mobils = $mobilsRaw[0];
            if (array_key_exists('mobil', $mobils) && strlen(trim($mobils['mobil']))) {
                $mobil = $mobils['mobil'];
            }
            if (array_key_exists('kontakty', $mobils) && !empty($mobils['kontakty'])) {
                foreach ($mobils['kontakty'] as $kontakt) {
                    if (($kontakt['primarni'] == 'true') && strlen(trim($kontakt['mobil']))) {
                        $mobil = $kontakt['mobil'];
                        break;
                    }
                }
            }
        }
        return $mobil;
    }
1158397
public function getPaymentMethod()
    {
        if (isset($this->source->order_payment_id)) {
            return $this->source->order_payment_id;
        }
        return parent::getPaymentMethod();
    }
304312
public function getPaymentMethod()
    {
        $session = $this
            ->getRequest()
            ->getSession();

        $payment_methods = GatewayInfo::getSupportedGateways();
        $payment_session = $session->get('Checkout.PaymentMethodID');
        $method = null;

        if (!empty($payment_session) && array_key_exists($payment_session, $payment_methods)) {
            $method = $payment_session;
        } else {
            $default = key($payment_methods);
            $method = $default;
            $session->set('Checkout.PaymentMethodID', $default);
        }

        return $method;
    }
856750
public function CustomerForm()
    {
        // If no estimate found, generate error
        if (!$this->hasEstimate()) {
            return $this->redirect($this->Link("noestimate"));
        }

        $session = $this
            ->getRequest()
            ->getSession();

        $member = Security::getCurrentUser();
        $contact = ($member) ? $member->Contact() : $member;

        $form = CustomerDetailsForm::create(
            $this,
            'CustomerForm',
            $this->getEstimate()
        );

        $data = $session->get("Checkout." . $form->FormName() . ".data");
        
        if (is_array($data)) {
            $form->loadDataFrom($data);
        } elseif ($contact) {
            // Fill email, phone, etc
            $form->loadDataFrom($contact);
            
            // Then fill with Address info
            if($contact->DefaultLocation()) {
                $form->loadDataFrom($contact->DefaultLocation());
            }
        }

        $this->extend("updateCustomerForm", $form);

        return $form;
    }
598316
function createContact() {
    $cnt = count( $this->contact );
    if( 0 >= $cnt )
      return;
    $output = null;
    foreach( $this->contact as $contact ) {
      $attributes = $this->_createParams( $contact['params'], array( 'ALTREP', 'LANGUAGE' ));
      $content    = $this->_strrep( $contact['value'] );
      $output    .= $this->_createElement( 'CONTACT', $attributes, $content );
    }
    return $output;
  }
244522
public function getPayPalRequest()
    {
        if (is_null($this->payPalRequest)) {
            $requestBuilder = $this->getPayPalRequestBuilder();

            $data = $this->getData();

            $requestBuilder->setTransactionId($data->getTransactionId());
            $requestBuilder->setAmount($data->getAmount(), $data->getCurrency());
            $requestBuilder->setRefundType($data->getType());
            $requestBuilder->setComment($data->getComment());

            $this->payPalRequest = $requestBuilder->getRequest();
        }

        return $this->payPalRequest;
    }
446329
public function getContactType()
    {
        if (null === $this->contact_type) {
            return null;
        }
        $valueSet = DealerContactInfoTableMap::getValueSet(DealerContactInfoTableMap::CONTACT_TYPE);
        if (!isset($valueSet[$this->contact_type])) {
            throw new PropelException('Unknown stored enum key: ' . $this->contact_type);
        }

        return $valueSet[$this->contact_type];
    }