load user payment data.

@return array
330973
protected function GetUserPaymentData()
    {
        $oGlobal = TGlobal::instance();
        if ($oGlobal->UserDataExists(TdbShopPaymentHandler::URL_PAYMENT_USER_INPUT)) {
            $this->aPaymentUserData = $oGlobal->GetUserData(TdbShopPaymentHandler::URL_PAYMENT_USER_INPUT);
            if (!is_array($this->aPaymentUserData)) {
                $this->aPaymentUserData = array();
            }
        } elseif (is_null($this->aPaymentUserData)) {
            $this->aPaymentUserData = $this->GetDefaultUserPaymentData();
        }

        return $this->aPaymentUserData;
    }
265383
public function getData()
    {
        parent::getData();

        $data = array(
            'amount' => $this->getAmountInteger(),
            'country' => $this->getCountry(),
            'currency' => $this->getCurrency(),
        );

        return array_filter($data);
    }
1105487
protected function GetDefaultUserPaymentData()
    {
        $aData = parent::GetDefaultUserPaymentData();
        $aData['cc_typ'] = '';
        $aData['cc_number'] = '';
        $aData['addr_name'] = '';
        $aData['cc_expdate_month'] = date('n');
        $aData['cc_expdate_year'] = date('Y');
        $aData['cc_expdate_month'] = '';

        return $aData;
    }
862988
public static function GetDirectLinkResponsePaymentUserDataFields()
    {
        return array(self::GetDirectLinkResponsePaymentUserDataFieldPrefix().'PAYID', self::GetDirectLinkResponsePaymentUserDataFieldPrefix().'STATUS', self::GetDirectLinkResponsePaymentUserDataFieldPrefix().'AMOUNT', self::GetDirectLinkResponsePaymentUserDataFieldPrefix().'CURRENCY', self::GetDirectLinkResponsePaymentUserDataFieldPrefix().'PM', self::GetDirectLinkResponsePaymentUserDataFieldPrefix().'BRAND', self::GetDirectLinkResponsePaymentUserDataFieldPrefix().'HTML_ANSWER');
    }
1214185
protected function loadData(): void
	{
		$data = $this->store->read($this->sessionId);

		$this->sessionData = $data === false ? [] : $data;
	}
2540
public function load($paymentId)
    {
        $this->setPaymentId($paymentId);

        $comments = array();
        $commentsData = $this->getDbGateway()->getList($this->getPaymentId());
        if (is_array($commentsData) && count($commentsData)) {
            $comments = array();
            foreach ($commentsData as $data) {
                $comment = oxNew(\OxidEsales\PayPalModule\Model\OrderPaymentComment::class);
                $comment->setData($data);
                $comments[] = $comment;
            }
        }

        $this->setArray($comments);
    }
319839
public function getData()
    {
        $data = array();

        if ($this->getParameter('customer')) {
            $data['customer'] = $this->getParameter('customer');
        } elseif ($this->getParameter('card')) {
            /* @var $card \OmniPay\Common\CreditCard */
            $card = $this->getParameter('card');
            $card->validate();

            $card_data = array(
                'exp_month' => $card->getExpiryMonth(),
                'exp_year' => $card->getExpiryYear(),
                'number' => $card->getNumber(),
            );

            if ($card->getBillingCity()) {
                $card_data['address_city'] = $card->getBillingCity();
            }

            if ($card->getBillingCountry()) {
                $card_data['address_country'] = $card->getBillingCountry();
            }

            if ($card->getBillingAddress1()) {
                $card_data['address_line1'] = $card->getBillingAddress1();
            }

            if ($card->getBillingAddress2()) {
                $card_data['address_line2'] = $card->getBillingAddress2();
            }

            if ($card->getBillingState()) {
                $card_data['address_state'] = $card->getBillingState();
            }

            if ($card->getBillingPostcode()) {
                $card_data['address_zip'] = $card->getBillingPostcode();
            }

            if ($card->getCvv()) {
                $card_data['cvc'] = $card->getCvv();
            }

            if ($card->getBillingName()) {
                $card_data['name'] = $card->getBillingName();
            }

            $data['card'] = $card_data;
        } else {
            throw new InvalidRequestException("You must pass either the card or the customer");
        }

        return $data;
    }
1316792
private function loadDashboardCards()
	{
		// Fetch all the dashboard cards for the current user
		$model = UserMetadata::model()->getPrototype('UserMetadata', array(
		             'user_id' => $this->user->id,
		             'key' => 'dashboard_cards'
		         ), array('value' => '{}'));

		$model->value = CJSON::decode($model->value);

		return $model;
	}
354288
public function getData()
    {
        return [
            'user___user__view_profile' => 'View user profile',
            'user___user__view_own_profile' => [
                'type' => Item::TYPE_PERMISSION,
                'description' => 'View user own profile',
                'rule' => new UpdateOwnDataRule(),
                'children' => ['user___user__view_profile']
            ],
            'user' => [
                'type' => Item::TYPE_ROLE,
                'description' => 'User',
                'children' => ['user___user__view_own_profile'],
            ],
            'admin' => [
                'type' => Item::TYPE_ROLE,
                'description' => 'Admin',
                'children' => ['user___user__view_profile']
            ],
            'owner' => [
                'type' => Item::TYPE_ROLE,
                'description' => 'Application owner',
                'children' => ['admin'],
            ]
        ];
    }
1096086
public static function getData($payment)
    {

        $data = null;

        $data = parent::getData($payment);

        // paymentMode
        if ($payment->getPaymentMode() != null) {
            $data["paymentMode"] = $payment->getPaymentMode()->getValue();
        }

        // paymentMethod
        if ($payment->getPaymentMethod()->getPaymentMethod() != null) {
            $data["paymentMethod"] = $payment->getPaymentMethod()->getPaymentMethod();
        }

        // senderHash
        if ($payment->getSenderHash() != null) {
            $data["senderHash"] = $payment->getSenderHash();
        }

         // receiverEmail
        if ($payment->getReceiverEmail() != null) {
            $data["receiverEmail"] = $payment->getReceiverEmail();
        }

        // Bank name
        if ($payment->getOnlineDebit() != null) {
            $data["bankName"] = $payment->getOnlineDebit()->getBankName();
        }

        //Credit Card
        if ($payment->getCreditCard() != null) {
            //Token
            if ($payment->getCreditCard()->getToken() != null) {
                $data['creditCardToken'] = $payment->getCreditCard()->getToken();
            }

            //Installments
            if ($payment->getCreditCard()->getInstallment() != null) {
                $installment = $payment->getCreditCard()->getInstallment();
                if ($installment->getQuantity() != null && $installment->getValue()) {
                    $data['installmentQuantity'] = $installment->getQuantity();
                    $data['installmentValue']    = PagSeguroHelper::decimalFormat($installment->getValue());
                    if ($installment->getNoInterestInstallmentQuantity() != null ) {
                        $data['noInterestInstallmentQuantity'] = $installment->getNoInterestInstallmentQuantity();
                    }
                }
            }

            //Holder
            if ($payment->getCreditCard()->getHolder() != null) {
                $holder = $payment->getCreditCard()->getHolder();
                if ($holder->getName() != null) {
                    $data['creditCardHolderName'] = $holder->getName();
                }
                 // documents
                /*** @var $document PagSeguroDocument */
                if ($payment->getCreditCard()->getHolder()->getDocuments() != null) {
                    $documents = $payment->getCreditCard()->getHolder()->getDocuments();
                        $data['creditCardHolderCPF'] = $documents->getValue();
                }
                if ($holder->getBirthDate() != null) {
                    $data['creditCardHolderBirthDate'] = $holder->getBirthDate();
                }
                // phone
                if ($holder->getPhone() != null) {
                    if ($holder->getPhone()->getAreaCode() != null) {
                        $data['creditCardHolderAreaCode'] = $holder->getPhone()->getAreaCode();
                    }
                    if ($holder->getPhone()->getNumber() != null) {
                        $data['creditCardHolderPhone'] = $holder->getPhone()->getNumber();
                    }
                }
            }

            //Billing Address
            if ($payment->getCreditCard()->getBilling() != null) {
                $billingAddress = $payment->getCreditCard()->getBilling()->getAddress();
                if ($billingAddress->getStreet() != null) {
                    $data['billingAddressStreet'] = $billingAddress->getStreet();
                }
                if ($billingAddress->getNumber() != null) {
                    $data['billingAddressNumber'] = $billingAddress->getNumber();
                }
                if ($billingAddress->getComplement() != null) {
                    $data['billingAddressComplement'] = $billingAddress->getComplement();
                }
                if ($billingAddress->getCity() != null) {
                    $data['billingAddressCity'] = $billingAddress->getCity();
                }
                if ($billingAddress->getState() != null) {
                    $data['billingAddressState'] = $billingAddress->getState();
                }
                if ($billingAddress->getDistrict() != null) {
                    $data['billingAddressDistrict'] = $billingAddress->getDistrict();
                }
                if ($billingAddress->getPostalCode() != null) {
                    $data['billingAddressPostalCode'] = $billingAddress->getPostalCode();
                }
                if ($billingAddress->getCountry() != null) {
                    $data['billingAddressCountry'] = $billingAddress->getCountry();
                }
            }

        }

        return $data;
    }
1318572
protected function GetDefaultUserPaymentData()
    {
        $aData = parent::GetDefaultUserPaymentData();
        $aData['creditCardType'] = '';
        $aData['creditCardNumber'] = '';

        $oUser = TdbDataExtranetUser::GetInstance();
        $oBillingAdr = $oUser->GetBillingAddress();
        $aData['creditCardOwnerName'] = $oBillingAdr->fieldFirstname.' '.$oBillingAdr->fieldLastname;
        $aData['creditCardValidToMonth'] = '';
        $aData['creditCardValidToYear'] = '';
        $aData['creditCardChecksum'] = '';

        $aData['pseudocardpan'] = '';
        $aData['truncatedcardpan'] = '';

        return $aData;
    }
795645
public function load_data() {
		$data = get_option( $this->store_key() );
		if ( empty( $data ) ) {
			$data = $this->get_data();
		}

		return $data;
	}
427493
protected function getPaymentTransactionStructure()
    {
        return [
            'amount'              => $this->transformAmount($this->amount, $this->currency),
            'currency'            => $this->currency,
            'customer_account_id' => $this->customer_account_id,
            'return_url'          => $this->return_url,
            'customer_email'      => $this->customer_email,
            'customer_phone'      => $this->customer_phone,
            'billing_address'     => $this->getBillingAddressParamsStructure(),
            'shipping_address'    => $this->getShippingAddressParamsStructure()
        ];
    }
604121
public function getUserInfo(): array
    {
        $data = [
            'isMobile' => 'false',
            'includeKalsysInfos' => 'false',
            'token' => $this->token,
        ];
        $response = $this->doGet('/np/users/me', $data);
        $userInfo = json_decode($response, true);

        return $userInfo;
    }
212482
private function getPaymentDataHelper() {
        if ($this->paymentDataHelper === null) {
            $this->paymentDataHelper = ObjectManager::getInstance()->get(Data::class);
        }
        return $this->paymentDataHelper;
    }
647458
protected function getCustomerData()
    {
        $card = $this->getCard();
        $data = array();

        $data['customer']['name'] = $card->getName();
        $data['customer']['email'] = $card->getEmail();
        $data['customer']['sex'] = $card->getGender();
        $data['customer']['born_at'] = $card->getBirthday('m-d-Y');
        $data['customer']['document_number'] = $card->getHolderDocumentNumber();

        $arrayAddress = $this->extractAddress($card->getAddress1());
        if ( ! empty($arrayAddress['street']) ) {
            $data['customer']['address'] = $arrayAddress;
            $data['customer']['address']['zipcode'] = $card->getPostcode();
            if ( $card->getAddress2() ) {
                $data['customer']['address']['neighborhood'] = $card->getAddress2();
            }

            $data['customer']['address']['city']    = $card->getCity();
            $data['customer']['address']['state']   = $card->getState();
            $data['customer']['address']['country'] = $card->getCountry();
        }

        $arrayPhone = $this->extractDddPhone($card->getPhone());
        if ( ! empty($arrayPhone['ddd']) ) {
            $data['customer']['phone'] = $arrayPhone;
        }

        return $data;
    }
135838
public function getData()
    {
        $this->validate('merchantId', 'merchantPassword', 'acquirerId', 'transactionId');

        $data = [
            'AcquirerId'  => $this->getAcquirerId(),
            'MerchantId'  => $this->getMerchantId(),
            'Password'    => $this->getMerchantPassword(),
            'OrderNumber' => $this->getTransactionId()
        ];

        return $data;
    }