View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0007974 | module PayPal Checkout | module PayPal checkout - sub | public | 2026-07-06 09:10 | 2026-07-23 23:05 |
| Reporter | oxid0815 | Assigned To | |||
| Priority | high | Severity | minor | Reproducibility | always |
| Status | assigned | Resolution | open | ||
| Product Version | 2.9.0 / 3.8.0 | ||||
| Fixed in Version | 2.9.2 / 3.8.2 | ||||
| Summary | 0007974: Fix type cast in PaymentGateway::executePayment | ||||
| Description | In 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 Information | QA - ES - | ||||
| Tags | No tags attached. | ||||