Gets any additional data saved by the BPAY payment module.

@return Fontis_Australia_Block_Bpay_Info
352285
protected function _convertAdditionalData()
    {
        $details = @unserialize($this->getInfo()->getAdditionalData());

        if (is_array($details)) {
            $this->_billerCode = isset($details['biller_code']) ? (string) $details['biller_code'] : '';
            $this->_ref = isset($details['ref']) ? (string) $details['ref'] : '';
        } else {
            $this->_billerCode = '';
            $this->_ref = '';
        }

        return $this;
    }
54387
public function PostProcessExternalPaymentHandlerHook()
    {
        $bPaymentTransmitOk = parent::PostProcessExternalPaymentHandlerHook();
        if ($bPaymentTransmitOk) {
            $oGlobal = TGlobal::instance();
            $aUserData = $oGlobal->GetUserData();
            $sToken = $oGlobal->GetUserData('token');
            if (empty($sToken) && !is_null($this->sPayPalToken)) {
                $sToken = $this->sPayPalToken;
            } // recover token from session if not return from paypal
            if (!empty($sToken)) { // ignore request without a token (paypal would sometimes generate 2 reqeusts via browser redirect - one with and one without payload. we need to ignore the one without)
                $this->sPayPalToken = $sToken;
                // now fetch the details
                $this->aCheckoutDetails = $this->ExecutePayPalCall('GetExpressCheckoutDetails', array('TOKEN' => $this->sPayPalToken));
            }
        }

        return $bPaymentTransmitOk;
    }
314001
public function getPaymorrowEditValue()
    {
        $sOXID = $this->getPaymentObjectId();

        if ( $sOXID != "-1" && isset( $sOXID ) ) {

            /** @var oxPayment $oPayment */
            $oPayment = oxNew( "oxPayment" );
            $oPayment->loadInLang( $this->_iEditLang, $sOXID );

            $oOtherLang = $oPayment->getAvailableInLangs();
            if ( !isset( $oOtherLang[$this->_iEditLang] ) ) {

                $oPayment->loadInLang( key( $oOtherLang ), $sOXID );
            }

            return $oPayment;
        }

        return null;
    }
1119741
public function toData()
    {
        if (!$this->share) {
            $this->setPayload(array_merge($this->getPayload(), [
                'sharable' => false,
            ]));
        }
        return $this->makeQuickReply(parent::toData());
    }
454033
public function getData()
    {
        $this->validate('accountNumber', 'privateKey', 'token', 'amount', 'transactionId');

        $data = array();
        $data['sellerId'] = $this->getAccountNumber();
        $data['privateKey'] = $this->getPrivateKey();
        $data['merchantOrderId'] = $this->getTransactionId();
        $data['token'] = $this->getToken();
        $data['currency'] = $this->getCurrency();
        $data['total'] = $this->getAmount();

        if ($this->getCard()) {
            $data['billingAddr']['name'] = $this->getCard()->getName();
            $data['billingAddr']['addrLine1'] = $this->getCard()->getAddress1();
            $data['billingAddr']['addrLine2'] = $this->getCard()->getAddress2();
            $data['billingAddr']['city'] = $this->getCard()->getCity();
            $data['billingAddr']['state'] = $this->getCard()->getState();
            $data['billingAddr']['zipCode'] = $this->getCard()->getPostcode();
            $data['billingAddr']['email'] = $this->getCard()->getEmail();
            $data['billingAddr']['country'] = $this->getCard()->getCountry();
            $data['billingAddr']['phoneNumber'] = $this->getCard()->getPhone();
            $data['billingAddr']['phoneExt'] = $this->getCard()->getPhoneExtension();
        }

        if ($this->getCart()) {
            // remove amount parameter if lineItem attributes / cart is set
            unset($data['total']);

            $data['lineItems'] = $this->getCart();
        }

        // remove null values item from $data['billingAddr']
        $data['billingAddr'] = array_filter($data['billingAddr'], array($this, 'isNotNull'));

        // remove null values item from $data.
        $data = array_filter($data, array($this, 'isNotNull'));

        return $data;
    }
441342
public function getData()
    {
        $this->validate('transactionReference', 'MD', 'PaRes');

        return [
            'opcode'     => 3,
            'payment_id' => $this->getTransactionReference(),
            'PaRes'      => $this->getPaRes(),
            'MD'         => $this->getMD(),
            'token'      => $this->getRequestToken(),
        ];
    }
116738
public function PostProcessExternalPaymentHandlerHook()
    {
        $bPaymentTransmitOk = parent::PostProcessExternalPaymentHandlerHook();
        if ($bPaymentTransmitOk) {
            $oGlobal = TGlobal::instance();
            $aUserData = $oGlobal->GetUserData();
            $bPaymentTransmitOk = $this->GetTransactionStatus($aUserData['PAYID']);
        }

        return $bPaymentTransmitOk;
    }
965869
public function getData()
    {
        // An amount parameter is required, as is a currency.
        $this->validate('amount', 'currency', 'description');
        $data = parent::getData();

        // Some predefined variables that need to be set
        $data['next_phase']         = 'paydata';
        $data['agree2terms']        = '1';

        // Send through the charge amount and description, we will always set
        // the qty to 1
        $data['item1_desc']         = $this->getDescription();
        $data['item1_price']        = $this->getAmount();
        $data['item1_qty']          = 1;

        $data = array_merge($data, $this->getItemData());

        // $data['rebill_amount']      = $this->getAmount();
        $data['valuta_code']        = $this->getCurrency();
        $data['user1']              = $this->getUser1();
        $data['user2']              = $this->getUser2();
        $data['dyn_desc']           = $this->getDynDesc();

        // MultiCards supports card or token payments
        if ($this->getCardReference()) {
            $data['token_id'] = $this->getCardReference();
        } else {
            $this->validate('card');
            $card = $this->getCard();

            // Test Payments in particular use a card number that does not
            // validate against the Luhn algorithm, so don't validate the card.
            // $card->validate();

            /// Card data passed through
            $data['cust_name']          = $card->getName();
            $data['cust_address1']      = $this->stripForbiddenAddressCharacters($card->getBillingAddress1());
            $data['cust_city']          = $card->getBillingCity();
            $data['cust_state']         = $card->getBillingState();
            $data['cust_zip']           = $card->getBillingPostcode();
            $data['cust_phone']         = $card->getBillingPhone();
            $data['cust_email']         = $card->getEmail();
            $data['cust_country']       = $card->getBillingCountry();

            $data['card_num']           = $card->getNumber();
            $data['card_name']          = $card->getName();
            $data['card_exp']           = $card->getExpiryDate('m/y');
            $data['card_code']          = $card->getCvv();

            // This requests a token_id to be returned with the response so that
            // the card reference can be used next time.
            $data['req_trans_token']    = '1';
        }

        return $data;
    }
269958
public function getData()
    {
        parent::getData();

        $this->validate('amount', 'currency', 'description', 'transactionId');

        return array(
            'amount' => $this->getAmountInteger(),
            'currency' => $this->getCurrency(),
            'description' => $this->getDescription(),
            'id' => $this->getTransactionId(),
            'type' => 'refund',
        );
    }
568209
public function getPayload()
    {
        $payload = $this->getService('com:subscriptions.domain.payment.payload', array(

           'order_id' => $this->orderId,
           'description' => $this->_package->name,
           'amount' => $this->getItemAmountAfterDiscount(),
           'tax_amount' => $this->getTaxAmount(),
           'payment_method' => $this->getPaymentMethod(),
           'currency' => $this->currency,

        ));

        if ($this->_package->recurring) {
            $payload->setRecurring(1, $this->_package->billingPeriod, AnDomainAttributeDate::getInstance()->getDate(DATE_FORMAT_ISO_EXTENDED));
        }

        return $payload;
    }
688844
protected function GetUserPaymentData()
    {
        parent::GetUserPaymentData();

        $oGlobal = TGlobal::instance();
        //if no new payment data was submitted try to get the data from the active payment method
        if (!$oGlobal->UserDataExists(TdbShopPaymentHandler::URL_PAYMENT_USER_INPUT) && !isset($this->aPaymentUserData['NCERROR'])) {
            $oBasket = TShopBasket::GetInstance();
            $oPaymentMethod = &$oBasket->GetActivePaymentMethod();
            if (null !== $oPaymentMethod) {
                $oPaymentHandler = $oPaymentMethod->GetFieldShopPaymentHandler();
                if ($oPaymentHandler instanceof self) {
                    $this->aPaymentUserData = $oPaymentHandler->GetUserPaymentDataWithoutLoading();
                }
            }
        }
        $this->MapExpireDateFromAPI();
        $this->HandleError();

        return $this->aPaymentUserData;
    }
1338199
public function getData()
    {
        $this->validate('amount', 'token');

        $data = array();
        $data['token'] = $this->getToken();
        $data['amount'] = $this->getAmountInteger();
        $data['currencyCode'] = $this->getCurrency();
        $data['orderDescription'] = $this->getDescription();
        $data['customerOrderCode'] = $this->getTransactionId();
        $data['currency'] = $this->getCurrency();

        $card = $this->getCard();

        if ($card) {
            $data['billingAddress'] = array();
            $data['billingAddress']['address1'] = $card->getBillingAddress1();
            $data['billingAddress']['address2'] = $card->getBillingAddress2();
            $data['billingAddress']['city'] = $card->getBillingCity();
            $data['billingAddress']['state'] = $card->getBillingState();
            $data['billingAddress']['countryCode'] = $card->getBillingCountry();
            $data['billingAddress']['postalCode'] = $card->getBillingPostcode();
            $data['billingAddress']['telephoneNumber'] = $card->getBillingPhone();

            $data['name'] = $card->getName();

            $data['deliveryAddress'] = array();

            $data['deliveryAddress']['firstName'] = $card->getShippingFirstName();
            $data['deliveryAddress']['lastName'] = $card->getShippingLastName();
            $data['deliveryAddress']['address1'] = $card->getShippingAddress1();
            $data['deliveryAddress']['address2'] = $card->getShippingAddress2();
            $data['deliveryAddress']['city'] = $card->getShippingCity();
            $data['deliveryAddress']['state'] = $card->getShippingState();
            $data['deliveryAddress']['countryCode'] = $card->getShippingCountry();
            $data['deliveryAddress']['postalCode'] = $card->getShippingPostcode();
            $data['deliveryAddress']['telephoneNumber'] = $card->getBillingPhone();

            $data['shopperEmailAddress'] = $card->getEmail();
        }

        $data['shopperIpAddress'] = $this->getClientIp();

        // Omnipay does not support recurring at the moment
        $data['orderType'] = 'ECOM';

        return $data;
    }
773638
public function getRequestData()
    {
        parent::getRequestData();

        if ($this->getRequest() instanceof Request) {
            if (in_array($this->getRequest()->getMethod(), array('PUT', 'DELETE'))) {
                $this->requestData[$this->getRequest()->getMethod()] = $this->getRequest()->request->all();
            }
        }

        return $this->requestData;
    }
198097
public function getPayload()
    {
        $queryBuilder = $this->getSearchService()->query();

        $this->doFiltration($queryBuilder);
        $this->doPagination($queryBuilder);
        $this->doSorting($queryBuilder);
        $searchResult = $this->doSearch($queryBuilder);
        $result = $this->doPostProcessing($searchResult);

        return $result;
    }
888506
protected function getBaseData()
    {
        $data = array();

        $data['VPSProtocol'] = $this->VPSProtocol;
        $data['TxType'] = $this->getTxType();
        $data['Vendor'] = $this->getVendor();
        $data['AccountType'] = $this->getAccountType() ?: static::ACCOUNT_TYPE_E;

        // TODO: move this to getDerivedLanguage()

        if ($language = $this->getLanguage()) {
            // Although documented as ISO639, the gateway expects
            // the code to be upper case.

            $language = strtoupper($language);

            // If a locale has been passed in instead, then just take the first part.
            // e.g. both "en" and "en-gb" becomes "EN".

            list($language) = preg_split('/[-_]/', $language);

            $data['Language'] = $language;
        }

        return $data;
    }
869241
public function getPaymentId()
    {
        if ($this->_sPaymentId == null) {
            $this->_sPaymentId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("oxpaymentid");
            if (!$this->_sPaymentId || $this->_blDelete) {
                if ($oUser = $this->getUser()) {
                    $oUserPayments = $oUser->getUserPayments();
                    if (isset($oUserPayments[0])) {
                        $this->_sPaymentId = $oUserPayments[0]->oxuserpayments__oxid->value;
                    }
                }
            }
            if (!$this->_sPaymentId) {
                $this->_sPaymentId = "-1";
            }
        }

        return $this->_sPaymentId;
    }
1035004
public function get_data() {
        $data = parent::get_data();
        if ($data && !empty($this->_customdata->istool)) {
            // Content item checkbox is disabled in tool settings, so this cannot be edited. Just unset it.
            unset($data->lti_contentitem);
        }
        return $data;
    }