2012-11-04 25 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