私はChargifyのホストされた請求を自分のレールアプリに統合しようとしていますが、いくつかの問題があります。Chargify(hosted)とRailsアプリの統合
私は、次のよこのチュートリアル:http://blog.formedfunction.com/post/4022209767/how-to-integrate-chargify-hosted-payment-pages-with-a
そして、私は合計noobのだから、私はここでの問題に実行しているよ:
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)に移動する必要があります。
私は単純な解決策があると確信しています、私はちょうど私の頭を包むことはできません今のところその周りに。
ありがとうございます。