我试图将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)}
我确定有一个简单的解决方案,我不能包裹我的头围绕它现在。
在此先感谢。