Closed BreakSecurity closed 3 years ago
You can start with this within the payregister/Extension file, let me know if you need me to explain what the code does ;)
public function boot()
{
Themes_model::extend(function ($model) {
$model->bindEvent('model.afterSave', function () use ($model) {
if (!$model->wasRecentlyCreated)
return;
// Logic here.
});
});
}
Yup
Closing since now it is merged
As discussed here: https://forum.tastyigniter.com/d/2293-payment
Please point me in the right direction. Part of the code to edit, examples of similar code, etc...