在Parse中设置Stripe Cloud模块

时间:2014-11-29 05:00:06

标签: ios parse-platform stripe-payments cloud-code stripe.net

事先为我的天真道歉。我开始学习Obj。 C大约六周前所以我对iOS开发很新,很多事情对我来说都不是很明显。

我正在使用Parse构建我的第二个应用程序。这次它是一个电子com应用程序,所以想使用Apple Pay with Stripe作为支付提供商。想使用Parse作为Stripe的服务器。

我已经将(我认为?)Cloud Code链接到我的Parse帐户的应用程序(我想这都是在JavaScript中?所以这对我来说非常混乱)。

但我甚至不确定从哪里开始使用最初的Parse / Stripe文档(https://parse.com/docs/cloud_modules_guide#stripe)。我应该把以下代码放在哪里:

var Stripe = require('stripe');
Stripe.initialize('mySecretKey');

1 个答案:

答案 0 :(得分:0)

正如Lyndsey Scott所说,我可以在Parse的示例应用程序中看到代码进入main.js。