2016-01-28 21 views
0

我使用Parse.com的BaaS進行數據存儲,並使用他們的Cloud Code平臺進行支付處理。幾個月前,我寫了一個付款處理腳本,確實有效。但現在我注意到類方法名稱和回調結構的差異。Parse.com的條帶雲代碼模塊的侷限性?

當提到Parse.com的JS API文檔,他們叫我去這個頁面:

https://parse.com/docs/js/api/classes/Stripe.html

但它不存在。而Parse Cloud Code平臺的當前API文檔沒有關於其第三方模塊的文檔。

The built-in Stripe Cloud Module provides a subset of the functionality available 
to Stripe customers. If the feature you are interested in is not supported by this 
Cloud Module, you may want to consider writing your own Stripe JavaScript wrapper 
as a custom Cloud Module. We suggest looking at Stripe's API Libraries index 
for inspiration. 

有沒有人對Parse.com的條帶雲代碼模塊的限制有任何說明?

回答

2

我不記得確切的版本,但它是2011年底的Stripe API版本。我對Parse缺乏支持感到有些惱火,並且實際上構建了支持Parse的Stripe的Node.js API庫的修改版本(比我計劃的更復雜一點)。它目前基於Stripe-Node API的4.2.0版本,實際上應該與任何版本的Stripe API兼容。 (解析實際上是硬編碼的API版本)。

https://github.com/matthewarkin/stripe-parse

+1

非常感謝您的支持!我剛剛測試過它,迄今爲止完美。 –

+1

真棒,在一個相關的說明,解析只是指出他們在一年內關閉 –

+0

那麼....只是糟透了。謝謝你讓我知道! –