Calling a server side action from a client side action

Hello I am writing a plugin for a payment system. I would like to run most of the sensitive code on the server side. But the first step has to run on the client side. Is there a way for a client side action of a plugin to trigger a server side action of that plugin after passing it data?

Not that I know of in that direct manner, but you can build them as separate actions and then instruct your plugin users to do first the client action and then the server side action.

1 Like