since few days I am tring to create a payment plugin. I followed the developer documentation and at the moment my plugin have some simple functionalities. Unoftunally SW do not have any Refund statuses, so I want to add two custom records in s_core_states. Of cource to be harder I want to do this during plugin install, and for the moment I can not find how to do it.
During the install I use crud_service but as I understand it can edit the schema, but can not do insert.
I will be glad is someone help or give me advice how to do it!
Thanks, I read this part, but asking the merchant to use phpmyadmin, or ask him to ask the hosting provider to do this is not an option.
I think this must bu done from the plugin. I can insert this records from some other method, and will include a check in it, but this will be fired everytime when the method is called. The only method we call once is the install method.
As alternative I serached for hook - on-plugin-config-save or somehing like this, but for the moment is is hard to undestand or find the event I need.