View Issue Details

IDProjectCategoryView StatusLast Update
0007974module PayPal Checkoutmodule PayPal checkout - subpublic2026-07-23 23:05
Reporteroxid0815 Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version2.9.0 / 3.8.0 
Fixed in Version2.9.2 / 3.8.2 
Summary0007974: Fix type cast in PaymentGateway::executePayment
DescriptionIn the executePayment method of the PaymentGateway class, the return value from getSessionPaymentId() was not explicitly cast to a string. This led to fatal errors when using the method PayPalDefinitions::isButtonPayment with a null value in situations where no session is available, e.g., when calling executePayment for other modules in CLI scenarios.

    public function executePayment($amount, &$order)
    {
        $paymentService = $this->getServiceFromContainer(PaymentService::class);
        // patch start
        // $sessionPaymentId = $paymentService->getSessionPaymentId();
        $sessionPaymentId = (string) $paymentService->getSessionPaymentId();
        // patch stop
Additional InformationQA - ES -
TagsNo tags attached.

Activities

There are no notes attached to this issue.