我正在开发一个基于Rails 3的订阅网站,我需要使用PayPal Express Checkout(英国)进行定期付款。我发现它在ActiveMerchant中默认不支持,所以我遇到了以下博文:http://rayvinly.com/articles/2009/02/20/paypal-recurring-billing-with-activemerchant-in-ruby-on-rails/如何在我的项目中包含active_merchant的Raymond Law分支?
对于Rails来说,这是非常新的,并且遵循使用Gemfile和bundle install来安装其他第三方代码的方法,我试图把它添加到Gemfile中:
gem 'active_merchant', :git => 'https://github.com/rayvinly/active_merchant.git'
然后运行bundle install。我收到以下错误:
Updating https://github.com/rayvinly/active_merchant.git
Fetching source index for http://rubygems.org/
Could not find gem 'active_merchant (>= 0)' in https://github.com/rayvinly/active_merchant.git (at master).
Source does not contain any versions of 'active_merchant (>= 0)'
我不知道这是将此项目加入我的项目的正确方法。
我真正想要做的是安装最新的ActiveMerchant Gem,然后添加Raymond创建的额外Gateway部分。然而,我似乎无法找到我需要将文件放在我的项目中的位置,因为我不确定ActiveMerchant的位置在哪里?
任何人都可以指出我对这个方向正确吗?这可能是我错过的Rails 101的东西,但我似乎无法看到它。我仍然在以Rails的方式让我的头脑!来自10年的PHP。
在此先感谢您的帮助。
谢谢你的回复。我最终将其添加为插件: – slarti42uk 2011-04-13 16:27:52