if (!is_null($accepted['accept'])) {
                $data[$properties::ACCEPT_PAYMENT_METHOD_GROUP] =
                    implode(',', current($accepted['accept'])->getGroups());
                if (!is_null(current($accepted['accept'])->getNames())) {
                    $data[$properties::ACCEPT_PAYMENT_METHOD_NAME] =