protected function mapPaymentProvider2DonateType(Request $request)
    {
        $result = '';
        switch ($request->getProvider()) {
            case Request::PROVIDER_PAYMENT_WALL:
                $result = DonateLog::TYPE_PAYMENT_WALL;
                break;
            case Request::PROVIDER_SUPER_REWARD:
                $result = DonateLog::TYPE_SUPER_REWARD;
                break;
            case Request::PROVIDER_XSOLLA:
                $result = DonateLog::TYPE_XSOLLA;
                break;
            case Request::PROVIDER_PAY_PAL:
                $result = DonateLog::TYPE_PAY_PAL;
                break;
            case Request::PROVIDER_SOFORT:
                $result = DonateLog::TYPE_SOFORT;
                break;
        }

        return $result;
    }
protected function mapPaymentProvider2DonateType(Request $request)
    {
        $result = '';
        switch ($request->getProvider()) {
            case Request::PROVIDER_PAYMENT_WALL:
                $result = DonateLog::TYPE_PAYMENT_WALL;
                break;
            case Request::PROVIDER_SUPER_REWARD:
                $result = DonateLog::TYPE_SUPER_REWARD;
                break;
            case Request::PROVIDER_XSOLLA:
                $result = DonateLog::TYPE_XSOLLA;
                break;
            case Request::PROVIDER_PAY_PAL:
                $result = DonateLog::TYPE_PAY_PAL;
                break;
            case Request::PROVIDER_SOFORT:
                $result = DonateLog::TYPE_SOFORT;
                break;
        }

        return $result;
    }
protected function mapPaymentProvider2DonateType ( Request $ request ) { $ result = '' ; switch ( $ request -> getProvider ( ) ) { case Request :: PROVIDER_PAYMENT_WALL : $ result = DonateLog :: TYPE_PAYMENT_WALL ; break ; case Request :: PROVIDER_SUPER_REWARD : $ result = DonateLog :: TYPE_SUPER_REWARD ; break ; case Request :: PROVIDER_XSOLLA : $ result = DonateLog :: TYPE_XSOLLA ; break ; case Request :: PROVIDER_PAY_PAL : $ result = DonateLog :: TYPE_PAY_PAL ; break ; case Request :: PROVIDER_SOFORT : $ result = DonateLog :: TYPE_SOFORT ; break ; } return $ result ; }
Helper to map the PaymentProvider 2 DonateType

@param Request $request
@return string
Helper to map the PaymentProvider 2 DonateType