convertPaymentStruct example

'id = ?' => $customer['additional']['user']['id']]
            );
            $data = ['id' => $resetPayment];
        }

        if (isset($paymentId)) {
            $data = Shopware()->Container()->get(PaymentGatewayInterface::class)
                ->getList([$paymentId]$this->contextService->getShopContext());

            if (!empty($data)) {
                $data = Shopware()->Container()->get(LegacyStructConverter::class)
                    ->convertPaymentStruct(current($data));
            }
        }

        return $this->eventManager->filter(
            'Shopware_Modules_Admin_GetPaymentMeanById_DataFilter',
            $data,
            ['subject' => $this, 'id' => $id, 'user' => $customer]
        );
    }

    /** * Get all available payments * * @return array<array<string, mixed>> Payments data */
Home | Imprint | This part of the site doesn't use cookies.