我試圖將Chargify的託管計費與我的Rails應用程序相集成,並遇到一些困難。將Chargify(託管)與Rails應用程序集成
我下面這個教程:http://blog.formedfunction.com/post/4022209767/how-to-integrate-chargify-hosted-payment-pages-with-a
而且因爲我是一個總的小白,我遇到了一個問題在這裏:
def self.product_id(plan)
# your own logic to retrieve the Chargify product ID for
# the plan in question (hint: I store mine in the DB)
end
基本上這是剛剛的URL連接到適當的Chargify託管的頁面......即每個計劃都有一個6位數的ID,並且取決於他們在定價頁面上點擊的計劃,應將它們帶到chargify.com/#{self.product_id(plan)}
我確定有一個簡單的解決方案,我不能包裹我的頭圍繞它現在。
在此先感謝。