executes the post select payment hook for the given payment method. you can pass either the id
or the internal name of the payment method.

@param string $sPaymentMethodId
@param string $sPaymentMethodNameInternal
162183
protected function JumpSelectPaymentMethod($sPaymentMethodId = null, $sPaymentMethodNameInternal = null)
    {
        $oPaymentMethod = null;
        if (is_null($sPaymentMethodId)) {
            $sPaymentMethodId = $this->global->GetUserData('sPaymentMethodId');
        }
        if (empty($sPaymentMethodId)) {
            $oPaymentMethod = TdbShopPaymentMethod::GetNewInstance();
            if (is_null($sPaymentMethodNameInternal)) {
                $sPaymentMethodNameInternal = $this->global->GetUserData('sPaymentMethodNameInternal');
            }
            $oPaymentMethod->LoadFromField('name_internal', $sPaymentMethodNameInternal);
        }

        if (is_null($oPaymentMethod)) {
            $oPaymentMethod = TdbShopPaymentMethod::GetNewInstance();
            $oPaymentMethod->Load($sPaymentMethodId);
        }

        if ($oPaymentMethod->IsAvailable()) {
            $oBasket = TShopBasket::GetInstance();
            $oBasket->SetActivePaymentMethod($oPaymentMethod);

            // check if payment method was set
            $oCheckPayment = $oBasket->GetActivePaymentMethod();
            if (!$oCheckPayment) {
                TTools::WriteLogEntry('JumpSelectPaymentMethod: unable to select payment method', 1, __FILE__, __LINE__);
            }

            // also set shipping type if not already set
            $oActiveShippingGroup = $oBasket->GetActiveShippingGroup();
            if (is_null($oActiveShippingGroup) || !$oPaymentMethod->isConnected('shop_shipping_group', $oActiveShippingGroup->id)) {
                $oMatchingShippingGroup = TdbShopShippingGroupList::GetShippingGroupsThatAllowPaymentWith($oPaymentMethod->fieldNameInternal);
                $oBasket->SetActiveShippingGroup($oMatchingShippingGroup);
                $oBasket->RecalculateBasket();
            }

            $oPaymentMethod->GetFieldShopPaymentHandler()->PostSelectPaymentHook(TCMSMessageManager::GLOBAL_CONSUMER_NAME);

            return true;
        } else {
            trigger_error('trying to access an unavailable payment method through JumpSelect', E_USER_WARNING);

            return false;
        }
    }
343473
public function pay(OrderPaymentEvent $event)
    {
        $order = $event->getOrder();

        /* call pay method */
        if (null === $paymentModule = ModuleQuery::create()->findPk($order->getPaymentModuleId())) {
            throw new \RuntimeException(
                Translator::getInstance()->trans(
                    "Failed to find a payment Module with ID=%mid for order ID=%oid",
                    [
                        "%mid" => $order->getPaymentModuleId(),
                        "%oid" => $order->getId()
                    ]
                )
            );
        }

        $paymentModuleInstance = $paymentModule->getPaymentModuleInstance($this->container);

        $response = $paymentModuleInstance->pay($order);

        if (null !== $response && $response instanceof Response) {
            $event->setResponse($response);
        }
    }
444614
public function ExecutePayment(&$oPaymentHandler, $sMessageConsumer = '')
    {
        $bPaymentOk = false;
        $bAllowEdit = $this->bAllowEditByAll;
        $this->AllowEditByAll(true);
        $aData = $this->sqlData;
        $aData['system_order_payment_method_executed'] = '0';
        $aData['system_order_payment_method_executed_date'] = date('Y-m-d H:i:s');
        $this->LoadFromRow($aData);
        $this->Save();

        $bPaymentOk = $this->ExecutePaymentHook($oPaymentHandler, $sMessageConsumer);

        $this->AllowEditByAll($bAllowEdit);

        return $bPaymentOk;
    }
990055
public function execute()
    {
        $lastRealOrder = $this->_checkoutSession->getLastRealOrder();

        if (is_null($lastRealOrder->getPayment())) {
            throw new \Magento\Framework\Exception\NotFoundException(__('No order associated.'));
        }

        $paymentData = $lastRealOrder->getPayment()->getData();

        if ($paymentData['method'] === 'pagseguro_boleto') {
            try {
                $this->orderId = $lastRealOrder->getId();
                if (is_null($this->orderId)) {
                    throw new \Exception("There is no order associated with this session.");
                }

                if (! isset($paymentData['additional_information']['boleto_document'])
                    || ! isset($paymentData['additional_information']['hash'])) {
                    throw new \Exception("Error passing data from checkout page to pagseguro Request Controller");
                }

                $this->order = $this->loadOrder($this->orderId);
                /** @var \UOL\PagSeguro\Model\Direct\BoletoMethod $boleto */
                $boleto = new BoletoMethod(
                    $this->_objectManager->create('Magento\Directory\Api\CountryInformationAcquirerInterface'),
                    $this->_objectManager->create('Magento\Framework\App\Config\ScopeConfigInterface'),
                    $this->_objectManager->create('Magento\Framework\Module\ModuleList'),
                    $this->order,
                    $this->_objectManager->create('UOL\PagSeguro\Helper\Library'),
                    $data = [
                        'sender_document' => $this->helperData()->formatDocument($paymentData['additional_information']['boleto_document']),
                        'sender_hash' => $paymentData['additional_information']['hash'],
                        'order_id' => $this->orderId
                    ]
                );
                $this->placeOrder($boleto, $paymentData['method']);
                return $this->_redirect(sprintf('%s%s', $this->baseUrl(), 'pagseguro/direct/success'));
            } catch (\Exception $exception) {
                if (!is_null($this->order)) {
                    $this->changeOrderHistory('pagseguro_cancelada');
                }
                $this->pagseguroLogger($exception->getMessage());
                $this->clearSession();
                $this->whenError($exception->getMessage());
                return $this->_redirect(sprintf('%s%s', $this->baseUrl(), 'pagseguro/payment/failure'));
            }
        }

        if ($paymentData['method'] === 'pagseguro_online_debit') {
            try {
                $this->orderId = $lastRealOrder->getId();

                if (is_null($this->orderId)) {
                    throw new \Exception("There is no order associated with this session.");
                }
                
                if (!isset($paymentData['additional_information']['online_debit_document'])
                    || ! isset($paymentData['additional_information']['hash'])
                    || ! isset($paymentData['additional_information']['online_debit_bank'])
                    ) {
                    throw new \Exception("Error passing data from checkout page to pagseguro Request Controller");
                }
                $this->order = $this->loadOrder($this->orderId);
                /** @var \UOL\PagSeguro\Model\Direct\DebitMethod $debit */

                $debit = new DebitMethod(
                    $this->_objectManager->create('Magento\Directory\Api\CountryInformationAcquirerInterface'),
                    $this->_objectManager->create('Magento\Framework\App\Config\ScopeConfigInterface'),
                    $this->_objectManager->create('Magento\Framework\Module\ModuleList'),
                    $this->order,
                    $this->_objectManager->create('UOL\PagSeguro\Helper\Library'),
                    $data = [
                        'sender_document' => $this->helperData()->formatDocument($paymentData['additional_information']['online_debit_document']),
                        'sender_hash' => $paymentData['additional_information']['hash'],
                        'bank_name' => $paymentData['additional_information']['online_debit_bank'],
                        'order_id' => $this->orderId
                    ]
                );
                $this->placeOrder($debit, $paymentData['method']);
                return $this->_redirect(sprintf('%s%s', $this->baseUrl(), 'pagseguro/direct/success'));
            } catch (\Exception $exception) {
                $this->pagseguroLogger($exception->getMessage());
                if (!is_null($this->order)) {
                    $this->changeOrderHistory('pagseguro_cancelada');
                }
                $this->clearSession();
                $this->whenError($exception->getMessage());
                return $this->_redirect(sprintf('%s%s', $this->baseUrl(), 'pagseguro/payment/failure'));
            }
        }

         if ($paymentData['method'] === 'pagseguro_credit_card') {
            try {
                $this->orderId = $lastRealOrder->getId();

                if (is_null($this->orderId)) {
                    throw new \Exception("There is no order associated with this session.");
                }

                if (!isset($paymentData['additional_information']['credit_card_document'])
                    || ! isset($paymentData['additional_information']['hash'])
                    || ! isset($paymentData['additional_information']['credit_card_token'])
                    || ! isset($paymentData['additional_information']['credit_card_holder_name'])
                    || ! isset($paymentData['additional_information']['credit_card_holder_birthdate'])
                    || ! isset($paymentData['additional_information']['credit_card_installment'])
                    || ! isset($paymentData['additional_information']['credit_card_installment_value'])
                    ) {
                    throw new \Exception("Error passing data from checkout page to pagseguro Request Controller");
                }
                $this->order = $this->loadOrder($this->orderId);
                /** @var \UOL\PagSeguro\Model\Direct\CreditCardMethod $creditCard */

                $creditCard = new CreditCardMethod(
                    $this->_objectManager->create('Magento\Directory\Api\CountryInformationAcquirerInterface'),
                    $this->_objectManager->create('Magento\Framework\App\Config\ScopeConfigInterface'),
                    $this->_objectManager->create('Magento\Framework\Module\ModuleList'),
                    $this->order,
                    $this->_objectManager->create('UOL\PagSeguro\Helper\Library'),
                    $data = [
                        'sender_document' => $this->helperData()->formatDocument($paymentData['additional_information']['credit_card_document']),
                        'sender_hash' => $paymentData['additional_information']['hash'],
                        'order_id' => $this->orderId,
                        'installment' => [
                            'quantity' => $paymentData['additional_information']['credit_card_installment'],
                            'amount'   => $paymentData['additional_information']['credit_card_installment_value']
                        ],
                        'token' => $paymentData['additional_information']['credit_card_token'],
                        'holder' => [
                            'name'       => $paymentData['additional_information']['credit_card_holder_name'],
                            'birth_date' => $paymentData['additional_information']['credit_card_holder_birthdate'],

                        ]
                    ]
                );
                $this->placeOrder($creditCard, $paymentData['method']);
                return $this->_redirect(sprintf('%s%s', $this->baseUrl(), 'pagseguro/direct/success'));
            } catch (\Exception $exception) {
                $this->pagseguroLogger($exception->getMessage());
                if (!is_null($this->order)) {
                    $this->changeOrderHistory('pagseguro_cancelada');
                }
                $this->clearSession();
                $this->whenError($exception->getMessage());
                return $this->_redirect(sprintf('%s%s', $this->baseUrl(), 'pagseguro/payment/failure'));
            }
        }

        try {
            return $this->_redirect($this->_payment->createPaymentRequest());
        } catch (\Exception $exception) {
            /** @var \Magento\Sales\Model\Order $order */
            $order = $this->_objectManager->create('\Magento\Sales\Model\Order')->load(
                $this->_checkoutSession->getLastRealOrder()->getId()
            );
            /** change payment status in magento */
            $order->addStatusToHistory('pagseguro_cancelada', null, true);
            /** save order */
            $order->save();

            return $this->_redirect('pagseguro/payment/failure');
        }
    }
1203751
private function manageSelectDocument(&$params, &$dmsLoader, &$manageCategory, &$arrMessages, &$blnShowStart)
  {
    $params->loadRootCategory = true; // get complete path to root, for checking inherited access rights
    $params->loadAccessRights = true;
    $params->loadDocuments = true;
    $category = $dmsLoader->loadCategory($manageCategory, $params);
    
    if (!$category->isManageableForCurrentMember())
    {
      $arrMessages['errors'][] = $GLOBALS['TL_LANG']['DMS']['ERR']['manage_document_not_allowed'];
      $blnShowStart = true;
    }
    else if (!$category->hasDocuments())
    {
      $arrMessages['errors'][] = $GLOBALS['TL_LANG']['DMS']['ERR']['manage_document_category_empty'];
      $blnShowStart = true;
    }
    else
    {
      $this->Template = new \FrontendTemplate("mod_dms_mgmt_manage_document_select");
      $this->Template->setData($this->arrData);
      
      $this->Template->category = $category;
      
      $blnShowStart = false;
    }
  }
594582
public function onPaymentDone(PaymentEvent $event)
    {
        $payment = $event->getPayment();
        if (!$payment instanceof OrderPayment) {
            return;
        }

        $order = $payment->getOrder();
        if ($order->getLocked()) {
            $order->setLocked(false);
            $this->updateOrder($order, $event);
        }

        $returnPath = null;
        $details = $payment->getDetails();
        if (array_key_exists('done_redirect_path', $details)) {
            $returnPath = $details['done_redirect_path'];
        } else {
            $type = $order->getType();
            if ($type === OrderTypes::TYPE_CART) {
                $returnPath = $this->urlGenerator->generate('ekyna_cart_payment');
            } elseif ($type === OrderTypes::TYPE_QUOTE) {
                throw new \BadMethodCallException('Not yet implemented');
            } elseif ($type === OrderTypes::TYPE_ORDER) {
                if ($this->authorization->isGranted('ROLE_ADMIN')) {
                    $returnPath = $this->urlGenerator->generate(
                        'ekyna_order_order_admin_show',
                        array('orderId' => $order->getId())
                    );
                } else {
                    $returnPath = $this->urlGenerator->generate(
                        'ekyna_cart_confirmation',
                        array(
                            'orderKey' => $order->getKey(),
                            'paymentId' => $payment->getId(),
                        )
                    );
                }
            }
        }

        if (null === $returnPath) {
            throw new LogicException('Unable to determine return path.');
        }

        $event->setResponse(new RedirectResponse($returnPath));
    }
692683
public void order_orderId_pay_POST(Long orderId, OvhPayWithPaymentMethod paymentMethod) throws IOException {
		String qPath = "/me/order/{orderId}/pay";
		StringBuilder sb = path(qPath, orderId);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "paymentMethod", paymentMethod);
		exec(qPath, "POST", sb.toString(), o);
	}
912963
private function processTransaction(Transaction $transaction, PaymillMethod $paymentMethod)
    {
        /**
         * Payment paid done
         *
         * Paid process has ended ( No matters result )
         */
        $this->paymentEventDispatcher->notifyPaymentOrderDone($this->paymentBridge, $paymentMethod);

        /**
         * when a transaction is successful, it is marked as 'closed'
         */
        $transactionStatus = $transaction->getStatus();
        if (empty($transactionStatus) || $transactionStatus != 'closed') {

            /**
             * Payment paid failed
             *
             * Paid process has ended failed
             */
            $paymentMethod->setTransaction($transaction);
            $this->paymentEventDispatcher->notifyPaymentOrderFail($this->paymentBridge, $paymentMethod);

            throw new PaymentException();
        }

        /**
         * Adding to PaymentMethod transaction information
         *
         * This information is only available in PaymentOrderSuccess event
         */
        $paymentMethod
            ->setTransactionId($transaction->getId())
            ->setTransactionStatus($transactionStatus)
            ->setTransaction($transaction);

        /**
         * Payment paid successfully
         *
         * Paid process has ended successfully
         */
        $this->paymentEventDispatcher->notifyPaymentOrderSuccess($this->paymentBridge, $paymentMethod);

        return $this;
    }
29720
public function ExecutePayment(TdbShopOrder &$oOrder, $sMessageConsumer = '')
    {
        $bPaymentOk = parent::ExecutePayment($oOrder);
        if ($bPaymentOk) {
            if ($oOrder->fieldValueTotal * 100 == $this->sAuthorisedAmount) {
                $bPaymentOk = $this->ExecuteDataTransPaymentCall($oOrder);
            } else {
                $oMsgManager = TCMSMessageManager::GetInstance();
                $oMsgManager->AddMessage($sMessageConsumer, 'ERROR_PAYMENT_DATA_TRANS_ORDER_REQUEST_AMOUNT_CHANGE');
                $bPaymentOk = false;
            }
        }

        return $bPaymentOk;
    }
626072
private function addPaymentMethods(Order $order, ElementInterface $radioGroup)
    {
        $paymentMethods = $this->getPaymentMethodProvider()->getPaymentMethodsForOrder($order);
        
        $paymentMethods->map(function (PaymentMethod $paymentMethod) use ($radioGroup) {
            $radioGroup->addOptionToSelect($paymentMethod->getId(), $paymentMethod->translate()->getName());
        });
    }
811663
public function ExecutePayment(TdbShopOrder &$oOrder, $sMessageConsumer = '')
    {
        $bPaymentOk = parent::ExecutePayment($oOrder, $sMessageConsumer);
        if ($bPaymentOk) {
            $aEasyCashPayload = $this->GetPaymentPayload($oOrder);

            $aResponse = $this->SendRequestToEasyCash(self::EASY_CASH_DEBIT_PATH, $aEasyCashPayload);
            $bPaymentOk = $this->ProcessOrderResponse($oOrder, $aResponse, $aEasyCashPayload, $sMessageConsumer);
        }

        return $bPaymentOk;
    }
64151
function _doCapt($oID, $amt = 0, $currency = 'USD') {
    global $db, $messageStack;
    $_POST['captamt'] = preg_replace('/[^0-9.%]/', '', $_POST['captamt']);

    //@TODO: Read current order status and determine best status to set this to
    $new_order_status = (int)MODULE_PAYMENT_LINKPOINT_API_ORDER_STATUS_ID;
    if ($new_order_status == 0) $new_order_status = 1;

    $proceedToCapture = true;
    $captureNote = strip_tags(zen_db_input($_POST['captnote']));
    if (isset($_POST['captconfirm']) && $_POST['captconfirm'] == 'on') {
    } else {
      $messageStack->add_session(MODULE_PAYMENT_LINKPOINT_API_TEXT_CAPTURE_CONFIRM_ERROR, 'error');
      $proceedToCapture = false;
    }

    $lp_trans_num = (isset($_POST['captauthid']) && $_POST['captauthid'] != '') ? strip_tags(zen_db_input($_POST['captauthid'])) : '';
    $sql = "select lp_trans_num, chargetotal from " . TABLE_LINKPOINT_API . " where order_id = " . (int)$oID . " and transaction_result = 'APPROVED' order by date_added";
    if ($lp_trans_num != '') $sql = "select lp_trans_num, chargetotal from " . TABLE_LINKPOINT_API . " where lp_trans_num = :trans_num: and transaction_result = 'APPROVED' order by date_added";
    $sql = $db->bindVars($sql, ':trans_num:', $lp_trans_num, 'string');
    $query = $db->Execute($sql);
    if ($query->RecordCount() < 1) {
      $messageStack->add_session(MODULE_PAYMENT_LINKPOINT_API_TEXT_NO_MATCHING_ORDER_FOUND, 'error');
      $proceedToCapture = false;
    }
    $captureAmt = (isset($_POST['captamt']) && $_POST['captamt'] != '') ? (float)strip_tags(zen_db_input($_POST['captamt'])) : $query->fields['chargetotal'];
    if (isset($_POST['btndocapture']) && $_POST['btndocapture'] == MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_BUTTON_TEXT) {
      if ($captureAmt == 0) {
        $messageStack->add_session(MODULE_PAYMENT_LINKPOINT_API_TEXT_INVALID_CAPTURE_AMOUNT, 'error');
        $proceedToCapture = false;
      }
    }
    /**
     * Submit capture request to Gateway
     */
    if ($proceedToCapture) {
      unset($myorder);
      $myorder["ordertype"] = 'POSTAUTH';
      $myorder["oid"] = $query->fields['lp_trans_num'];
      $myorder["chargetotal"] = number_format($captureAmt, 2, '.', '');
      $myorder["comments"]  = htmlentities($captureNote, ENT_QUOTES, 'UTF-8');

      $result = $this->_sendRequest($myorder);
      $response_alert = $result['r_approved'] . ' ' . $result['r_error'] . ($this->commError == '' ? '' : ' Communications Error - Please notify webmaster.');
      $failure = ($result["r_approved"] != "APPROVED");
      if ($failure) {
        $messageStack->add_session($response_alert, 'error');
      } else {
        // Success, so save the results
        $this->_updateOrderStatus($oID, $new_order_status, 'FUNDS COLLECTED. Auth Code: ' . substr($result['r_code'], 0, 6) . ' - ' . 'Trans ID: ' . $result['r_tdate'] . "\n" . ' Amount: ' . number_format($captureAmt, 2) . "\n" . $captureNote);
        $messageStack->add_session(sprintf(MODULE_PAYMENT_LINKPOINT_API_TEXT_CAPT_INITIATED, $captureAmt, $result['r_tdate'], substr($result['r_code'], 0, 6)), 'success');
        return true;
      }
    }
    return false;
  }
419352
function execute(O $o) {
		/** @var IMethod|Method $m */
		/** @var Transaction $t */
		if (dfp_my($m = dfpm($t = $o['data_object']))) {
			/** @used-by \Magento\Sales\Model\Order\Payment\Transaction::getHtmlTxnId() */
			$t['html_txn_id'] = $m->tidFormat($t);
		}
	}
267759
protected function HandleNotifyMessageForPaymentState($sPaymentState, $aParameter, $oOrder)
    {
        if (!$oOrder->fieldOrderIsPaid) {
            if ('9' === $sPaymentState) {
                $oOrder->SetStatusPaid(true);
                $oOrder->SetStatusCanceled(false);
                $this->HandleNotifyOrderOnChange($oOrder, true, true, true);
                TTools::WriteLogEntry('OGONE: handle notify message order ('.$aParameter['ORDERID'].') was activated and paid by notify (Status 9 paid)', 1, __FILE__, __LINE__);
            } elseif ('5' === $sPaymentState) {
                if ($oOrder->fieldCanceled || !$oOrder->fieldSystemOrderSaveCompleted) {
                    $oOrder->SetStatusCanceled(false);
                    $oOrder->SetStatusPaid(false);
                    TTools::WriteLogEntry('OGONE: handle notify message order ('.$aParameter['ORDERID'].') was activated by notify and set to not paid (Status 5 reservation)', 1, __FILE__, __LINE__);
                    $this->HandleNotifyOrderOnChange($oOrder, false, !$oOrder->fieldSystemOrderSaveCompleted, true);
                }
            } else {
                if ('6' === $sPaymentState || '1' === $sPaymentState || '2' === $sPaymentState || '0' === $sPaymentState) {
                    $oOrder->SetStatusCanceled(true);
                    $oOrder->SetStatusPaid(false);
                    $this->HandleNotifyOrderOnChange($oOrder, false, false, true);
                    TTools::WriteLogEntry('OGONE: handle notify message order ('.$aParameter['ORDERID'].') was canceled and set to not paid by notify (Status 0,1,2,6)', 1, __FILE__, __LINE__);
                }
            }
        } else {
            TTools::WriteLogEntry('OGONE: handle notify message order ('.$aParameter['ORDERID'].') was already paid nothing to do)', 1, __FILE__, __LINE__);
        }
    }
122836
public function execute()
    {
        parent::execute();

        HpsInputValidation::checkAmount($this->amount);

        $xml = new DOMDocument();
        $hpsTransaction = $xml->createElement('hps:Transaction');
        $hpsRecurringBilling = $xml->createElement('hps:RecurringBilling');
        $hpsBlock1 = $xml->createElement('hps:Block1');

        $hpsBlock1->appendChild($xml->createElement('hps:AllowDup', 'Y'));
        $hpsBlock1->appendChild($xml->createElement('hps:Amt', $this->amount));
        if ($this->cardHolder != null) {
            $hpsBlock1->appendChild($this->service->_hydrateCardHolderData($this->cardHolder, $xml));
        }
        if ($this->details != null) {
            $hpsBlock1->appendChild($this->service->_hydrateAdditionalTxnFields($this->details, $xml));
        }

        if ($this->card != null) {
            $cardData = $xml->createElement('hps:CardData');
            $cardData->appendChild($this->service->_hydrateManualEntry($this->card, $xml));
            $hpsBlock1->appendChild($cardData);
        } else if ($this->token != null) {
            $cardData = $xml->createElement('hps:CardData');
            $cardData->appendChild($this->service->_hydrateTokenData($this->token, $xml));
            $hpsBlock1->appendChild($cardData);
        } else if ($this->paymentMethodKey != null) {
            $hpsBlock1->appendChild($xml->createElement('hps:PaymentMethodKey', $this->paymentMethodKey));
        }

        $recurringData = $xml->createElement('hps:RecurringData');
        if ($this->schedule != null) {
            $id = $this->schedule;
            if ($this->schedule instanceof HpsPayPlanSchedule) {
                $id = $this->schedule->scheduleIdentifier;
            }
            $recurringData->appendChild($xml->createElement('hps:ScheduleID', $id));
        }
        $recurringData->appendChild($xml->createElement('hps:OneTime', ($this->oneTime ? 'Y' : 'N')));

        $hpsBlock1->appendChild($recurringData);
        $hpsRecurringBilling->appendChild($hpsBlock1);
        $hpsTransaction->appendChild($hpsRecurringBilling);

        return $this->service->_submitTransaction($hpsTransaction, 'RecurringBilling', (isset($this->details->clientTransactionId) ? $this->details->clientTransactionId : null));
    }
1019871
protected function _loadPaymentMethodSurcharge( $sPaymentId )
    {
        /** @var oxPayment $oPaymentMethod */
        $oPaymentMethod = oxNew( 'oxPayment' );

        if ( !$oPaymentMethod->load( $sPaymentId ) or !$oPaymentMethod->getId() ) {
            return array();
        }

        $oPaymentMethod->calculate( $this );
        $oSurchargePrice = $oPaymentMethod->getPrice();

        if ( empty( $oSurchargePrice ) ) {
            return array();
        }

        return $oSurchargePrice;
    }
261907
private function executePostConnectionOptions(\stdClass $initData)
    {
        if (isset($initData->password)) {
            $this->authenticate($initData->password);
        }
        if (isset($initData->database)) {
            $this->selectDatabase($initData->database);
        }
    }