Dear all,
i´m searching for a signal wich will be triggered if a paymethod will activated.
Does such an Signal exist or can trigger this event on a other way ?
best redgards
syrap
Dear all,
i´m searching for a signal wich will be triggered if a paymethod will activated.
Does such an Signal exist or can trigger this event on a other way ?
best redgards
syrap
Hi,
I don’t think there is a signal for that.
Actually it is a bit unclear to me what you really want to get signalled:
event.registration_form_created
and event.registration_form_edited
signalsAnd for what purpose would you want this signal anyway?
Björn
Hi ,a happy new your to all,
thanks for your answer and i´m sorry for the late reply.
Maybe its better to explain you, what is my plan;
i would send a few informations about the event to another system if an Admin activates a specific payment methdod.
I thought there is an signal i can use, wich will triggered if an admin activates this paymehod.
We don’t have a signal nor code that runs on the payment plugin level when enabling it
I agree that having something there - maybe even a generic signal that runs when the payment method settings are changed on the event level (this includes enabling/disabling) or just a method called in the respective payment plugin - would be a very good idea.
Okay, than i´ll try to find another solution. thanks @ all for your fast help.
I also want to thank you for the good work you do here in the forum !
best redgards
Florian
If you sent a PR to add this, it’d probably make it into the next 2.3 patch release.
@syrap let me know if this is something you would like to look into. I think it’s a very small change - just a few lines - so it’s something nice for someone to contribute, but since it’d just take a few minutes I could just add it as well…
PaymentPluginMixin
class, e.g. payment_event_settings_changed
RHPaymentPluginEdit
when saving the settings (passing the event and the form data to it).The default implementation of the method would’t need to do anything (pass
), unless you want to move saving the actual settings in there (then it’d contain the self.plugin.event_settings.set_multi(self.event, form.data)
that’s currently in the RH).
@ThiefMaster that sounds very good. Maybe thats a stupid question ( i´m a python / Indico beginner ) . If i change the PaymentPluginMixin class, the next indico update would undo the change right?
that’s why you should send us a github pull request (PR) - it’s something useful that we can include in the indico core
Ah okay, cool. Than i will try it.