how to track a new event that user data is saved in the database (when a new order is created) in my payment plugin?
Table virtuemart_order_userinfos
They send trigger to default vm plugin ?
How to track it ? Whats name or function, when user order info saved and i can get its from database?
Check out the code of the current payment plugins or vmcustom plugin. You should fond the answer there.
Jörgen
I think you use wrong idea which trigger you have to use.
We use RSFormPro with connect CRM Redmine and trigger is AfterSubmission, then I think in VM have to trigger some like "AftercreateOrder", not next trigger after create order.
When an order head is updated this trigger is fired - maybe that is what you are searching for:
'plgVmUpdateOrderHead'
$returnValues = $dispatcher->trigger('plgVmUpdateOrderHead', array($cart, $order));
You asked this
Quotehow to track a new event that user data is saved in the database
It is really impossible for me to work out what you are trying to do - unless you tell us that - it is not going to be easy to give you any useful answers