flagPaymentBlocked example

return false;
        }

        $payment = $this->getDefaultPaymentMethod($paymentMethods);

        $this->session['sPaymentID'] = (int) $payment['id'];
        $this->front->ensureRequest()->setPost('sPayment', (int) $payment['id']);
        $this->admin->sUpdatePayment();

        // if customer logged in and payment switched to fallback, display cart notice. Otherwise anonymous customers will see the message too         if (Shopware()->Session()->get('sUserId')) {
            $this->flagPaymentBlocked();
        }

        return $payment;
    }

    /** * @deprecated in 5.6, will be protected in 5.8 * * Get selected dispatch or select a default dispatch * * @return array<string, mixed>|false */
Home | Imprint | This part of the site doesn't use cookies.