How to send a POST request to external server when user signs up?

Question:
Hi everyone, I’m using Wix Member Area, Wix Pricing Plans and Wix Forms apps to build a software service subscription website. I’m wondering how could I have Wix send a POST request to my own product server when 1) A new user signed up, 2) A user has paid for the membership?

I see that Wix supports javascript code on submit, but I don’t know how to set this up for the apps I’m using.

https://dev.wix.com/docs/velo/api-reference/wix-members-backend/events/on-member-created

Hi Dean, thank you for the help. Yea I have checked this page, but I’m not sure how can I added to my form in Wix Editor. Do you have any idea on that?

The form does not need any modification to implement that

Where are you getting stuck?
Are you sure you’ve gone through both of the links I sent?

Yes I have read them, I’m stucked here


In Editor, I go to Site Pages & Menu, and then Sign up & Login, and then Member Sign Up Form, and I see this page but don’t see where I could add the onsubmit method

Hey there,

These are backend events and the code for the same needs to be put inside the events.js file.
Here’s how: