作者:一林泽鹏_444 | 来源:互联网 | 2023-05-18 18:56
FirstlyIseethereareseveralParseStripequestionsonherehowevernoneareofanyhelptome.
Firstly I see there are several Parse / Stripe questions on here however none are of any help to me.
首先我看到这里有几个Parse / Stripe问题,但没有一个对我有任何帮助。
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.
我有一个具有免费和付费功能的移动应用程序。变量存储在Parse.com中的User类中,并在运行函数时检查其权限。我想设置一个帐户门户(与我的应用程序分开),因此当用户希望注册时,他们会被发送到他们的浏览器,并可以通过SSL等注册到计划。
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.
对于帐户门户网站,我有一个带有Stripe插件的Wordpress网站,可以为我的会计,发票和表单创建工作。
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).
在Wordpress网站上注册后,我想在Parse.com上收到webhook并运行一个更新User类的函数。理想情况下,这将是一个捕获所有功能,将根据他们的帐户状态将用户更改为多个州(即他们停止支付并且计划将被暂停)。
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?
我需要在Stripe webhook设置中放置哪些详细信息(URL等)以将所有事件发送到我的Parse.com云代码?
How do I receive / run my function on the Cloud code upon receipt of a webhook from Parse.com?
在收到Parse.com的webhook后,如何在Cloud代码上接收/运行我的功能?
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.
提前谢谢了。
2 个解决方案