Firstly I see there are several Parse / Stripe questions on here however none are of any help to me.
I have a mobile application that has both free and paid features. A variable is stored on the User
class in Parse.com and it is checked for permissions when running a function. I would like to setup an account portal (separate to my app) so when users wish to signup they are sent to their browser and can signup to a plan over SSL etc etc.
For the account portal i'm having a Wordpress site with a Stripe plugin that will do my accounting, invoicing and form creation work for me.
Following signup on the Wordpress site I would like to receive the webhook on Parse.com and run a function to update User
class. Ideally this will be a catch all function that will change the user to a number of states depending on their account status (i.e they stop paying and the plan will be on hold).
My question is two fold:
What details (URL etc) do I need to place in my Stripe webhook settings to send all events to my Parse.com cloud code?
How do I receive / run my function on the Cloud code upon receipt of a webhook from Parse.com?
I am open to criticism and remain flexible in my implementation if you have suggestions on how my app should work.
Many thanks in advance.