2012-11-04 19 views
5

我正在尝试将payu.in支付网关集成到我的导轨应用中。 我已经将他们的宝石在应用程序,但是当我去集成支付网关(基于主动销售商)与大礼包

/管理/ payment_methods /新

我无法看到下提供商期权的支付网关。

我按照步骤在http://guides.spreecommerce.com/payment_gateways.html

我的应用程序/模型/大礼包/网关/ payu.rb规定是这样的:

module Spree 
    class Gateway::Payu < Gateway 
    def provider_class 
     ActiveMerchant::Billing::Integrations::PayuIn 
    end 
    end 
end 
+0

没有u得到这个东西的工作,,我综合上面一样在问题中提到,现在我在施普雷:: CheckoutController#更新收到错误(NoMethodError。 未定义的方法'授权'对于ActiveMerchant :: Billing :: Integrations :: PayuIn:模块) – Dave

回答

1

对于我来说,只是窝ked当我添加一个类似的代码行:

config.after_initialize do 
    Rails.configuration.spree.payment_methods << Spree::PaymentMethod::Pagarme 
end 

我的config/application.rb文件。

(我看到它在http://blog.siyelo.com/active-merchant-and-spree