components/widgets/oxpspaymorrowinit.php
public function getSelectedPaymorrowMethod()
    {
        $sSessionPaymentId = (string) oxRegistry::getSession()->getVariable( 'paymentid' );

        /** @var OxpsPaymorrowOxPayment|oxPayment $oPayment */
        $oPayment = oxNew( 'OxpsPaymorrowOxPayment' );

        if ( empty( $sSessionPaymentId ) or !$oPayment->load( $sSessionPaymentId ) or
             !$oPayment->isPaymorrowActiveAndMapped()
        ) {
            $oPayment->loadPaymorrowDefault();
        }

        return (string) $oPayment->getPaymorrowPaymentType();
    }
public function getSelectedPaymorrowMethod()
    {
        $sSessionPaymentId = (string) oxRegistry::getSession()->getVariable( 'paymentid' );

        /** @var OxpsPaymorrowOxPayment|oxPayment $oPayment */
        $oPayment = oxNew( 'OxpsPaymorrowOxPayment' );

        if ( empty( $sSessionPaymentId ) or !$oPayment->load( $sSessionPaymentId ) or
             !$oPayment->isPaymorrowActiveAndMapped()
        ) {
            $oPayment->loadPaymorrowDefault();
        }

        return (string) $oPayment->getPaymorrowPaymentType();
    }
public function getSelectedPaymorrowMethod ( ) { $ sSessionPaymentId = ( string ) oxRegistry :: getSession ( ) -> getVariable ( 'paymentid' ) ; /** @var OxpsPaymorrowOxPayment|oxPayment $oPayment */ $ oPayment = oxNew ( 'OxpsPaymorrowOxPayment' ) ; if ( empty ( $ sSessionPaymentId ) or ! $ oPayment -> load ( $ sSessionPaymentId ) or ! $ oPayment -> isPaymorrowActiveAndMapped ( ) ) { $ oPayment -> loadPaymorrowDefault ( ) ; } return ( string ) $ oPayment -> getPaymorrowPaymentType ( ) ; }
Get a code of selected Paymorrow payment method.
First session is checked for what user have selected, then payment methods configuration is checked.
It applies only on payment methods linked to Paymorrow.

@return string Paymorrow payment method code or empty string.
Get a code of selected Paymorrow payment method . First session is checked for what user have selected then payment methods configuration is checked . It applies only on payment methods linked to Paymorrow .