# Calling a server side action from a client side action

**URL:** <https://forum.bubble.io/t/calling-a-server-side-action-from-a-client-side-action/52580>\
**Category:** Plugin builders\
**Created:** [March 23, 2019, 10:09am UTC](https://forum.bubble.io/t/calling-a-server-side-action-from-a-client-side-action/52580 "2019-03-23T10:09:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blastercbi](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@blastercbi](https://forum.bubble.io/u/blastercbi)\
**Post date:** [March 23, 2019, 10:09am UTC](https://forum.bubble.io/t/calling-a-server-side-action-from-a-client-side-action/52580/1 "2019-03-23T10:09:45Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![vini\_brito](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vini_brito/32/22187_2.png) [@vini\_brito](https://forum.bubble.io/u/vini_brito)\
**Post date:** [March 24, 2019, 1:40am UTC](https://forum.bubble.io/t/calling-a-server-side-action-from-a-client-side-action/52580/2 "2019-03-24T01:40:55Z")

</div>

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.
