def METHOD_NAME(action_type, registration, **kwargs):
    group = group_for_user(registration.user)
    kwargs["event_id"] = registration.event.id
    serializer = RegistrationPaymentInitiateSocketSerializer(
        {"type": action_type, "payload": registration, "meta": kwargs},
        context={"user": registration.user},
    )
    notify_group(group, serializer.data)