core/oxpspaymorrowrequestcontrollerproxy.php
public function _resetPaymentMethod( array $aPostData )
    {
        $oSession = oxRegistry::getSession();

        if ( $oSession->getVariable( 'paymentid' ) and
             array_key_exists( 'paymentid', $aPostData ) and
             ( $oSession->getVariable( 'paymentid' ) != $aPostData['paymentid'] )
        ) {
            // Remove previous method from sessions
            $oSession->deleteVariable( 'paymentid' );

            // Adjust basket by removing payment surcharge and recalculating the basket
            $oBasket = $oSession->getBasket();
            $oBasket->setPayment();
            $oBasket->setCost( 'oxpayment' );
            $oBasket->calculateBasket( true );
        }
    }
public function _resetPaymentMethod( array $aPostData )
    {
        $oSession = oxRegistry::getSession();

        if ( $oSession->getVariable( 'paymentid' ) and
             array_key_exists( 'paymentid', $aPostData ) and
             ( $oSession->getVariable( 'paymentid' ) != $aPostData['paymentid'] )
        ) {
            // Remove previous method from sessions
            $oSession->deleteVariable( 'paymentid' );

            // Adjust basket by removing payment surcharge and recalculating the basket
            $oBasket = $oSession->getBasket();
            $oBasket->setPayment();
            $oBasket->setCost( 'oxpayment' );
            $oBasket->calculateBasket( true );
        }
    }
public function _resetPaymentMethod ( array $ aPostData ) { $ oSession = oxRegistry :: getSession ( ) ; if ( $ oSession -> getVariable ( 'paymentid' ) and array_key_exists ( 'paymentid' , $ aPostData ) and ( $ oSession -> getVariable ( 'paymentid' ) != $ aPostData [ 'paymentid' ] ) ) { // Remove previous method from sessions $ oSession -> deleteVariable ( 'paymentid' ) ; // Adjust basket by removing payment surcharge and recalculating the basket $ oBasket = $ oSession -> getBasket ( ) ; $ oBasket -> setPayment ( ) ; $ oBasket -> setCost ( 'oxpayment' ) ; $ oBasket -> calculateBasket ( true ) ; } }
Reset changed payment method selection in session for payment surcharge calculation to be valid.
If selected method is not the same as in session, it removes session data and adjusts basket calculation.

@param array $aPostData
Reset changed payment method selection in session for payment surcharge calculation to be valid . If selected method is not the same as in session it removes session data and adjusts basket calculation .