components/widgets/oxpspaymorrowinit.php
public function getPaymorrowJavaScriptPmInitFull()
    {
        $sPmPrintData = $this->_getPaymorrowPrintData();
        $sPmControllerPrepareOrder = $this->getPaymorrowControllerPrepareOrderProcessPaymentURL();
        $sSelectedMethod = $this->getSelectedPaymorrowMethod();
        $sNextButtonId = 'paymentNextStepBottom';

        $sSDD = sprintf(
            'pmInitFull("SDD", "pmsdd", "rb_payment_sdd", "dl_payment_sdd", "payment", %s, "%s", %s, "%s");',
            $sPmPrintData,
            $sPmControllerPrepareOrder,
            ($sSelectedMethod == 'pm_sdd') ? 'true' : 'false',
            $sNextButtonId
        );

        $sInvoice = sprintf(
            'pmInitFull("INVOICE", "pminvoice", "rb_payment_invoice", "dl_payment_invoice", "payment", %s, "%s", %s, "%s");',
            $sPmPrintData,
            $sPmControllerPrepareOrder,
            ($sSelectedMethod == 'pm_invoice') ? 'true' : 'false',
            $sNextButtonId
        );

        return sprintf('$(document).ready(function(){%s%s});', $sSDD, $sInvoice);
    }
public function getPaymorrowJavaScriptPmInitFull()
    {
        $sPmPrintData = $this->_getPaymorrowPrintData();
        $sPmControllerPrepareOrder = $this->getPaymorrowControllerPrepareOrderProcessPaymentURL();
        $sSelectedMethod = $this->getSelectedPaymorrowMethod();
        $sNextButtonId = 'paymentNextStepBottom';

        $sSDD = sprintf(
            'pmInitFull("SDD", "pmsdd", "rb_payment_sdd", "dl_payment_sdd", "payment", %s, "%s", %s, "%s");',
            $sPmPrintData,
            $sPmControllerPrepareOrder,
            ($sSelectedMethod == 'pm_sdd') ? 'true' : 'false',
            $sNextButtonId
        );

        $sInvoice = sprintf(
            'pmInitFull("INVOICE", "pminvoice", "rb_payment_invoice", "dl_payment_invoice", "payment", %s, "%s", %s, "%s");',
            $sPmPrintData,
            $sPmControllerPrepareOrder,
            ($sSelectedMethod == 'pm_invoice') ? 'true' : 'false',
            $sNextButtonId
        );

        return sprintf('$(document).ready(function(){%s%s});', $sSDD, $sInvoice);
    }
public function getPaymorrowJavaScriptPmInitFull ( ) { $ sPmPrintData = $ this -> _getPaymorrowPrintData ( ) ; $ sPmControllerPrepareOrder = $ this -> getPaymorrowControllerPrepareOrderProcessPaymentURL ( ) ; $ sSelectedMethod = $ this -> getSelectedPaymorrowMethod ( ) ; $ sNextButtonId = 'paymentNextStepBottom' ; $ sSDD = sprintf ( 'pmInitFull("SDD", "pmsdd", "rb_payment_sdd", "dl_payment_sdd", "payment", %s, "%s", %s, "%s");' , $ sPmPrintData , $ sPmControllerPrepareOrder , ( $ sSelectedMethod == 'pm_sdd' ) ? 'true' : 'false' , $ sNextButtonId ) ; $ sInvoice = sprintf ( 'pmInitFull("INVOICE", "pminvoice", "rb_payment_invoice", "dl_payment_invoice", "payment", %s, "%s", %s, "%s");' , $ sPmPrintData , $ sPmControllerPrepareOrder , ( $ sSelectedMethod == 'pm_invoice' ) ? 'true' : 'false' , $ sNextButtonId ) ; return sprintf ( '$(document).ready(function(){%s%s});' , $ sSDD , $ sInvoice ) ; }
Returns a JavaScript with Paymorrow payment methods initialization functions wrapped in document.ready.

@nice-to-have Use a template for JS generation rather than doing in within PHP.

@return string
Returns a JavaScript with Paymorrow payment methods initialization functions wrapped in document . ready .