2012-11-04 2 views
5

payu.in 결제 게이트웨이를 내 레일 앱에 통합하려고합니다. 나는 응용 프로그램에 자신의 보석을 통합 한하지만 난결제 게이트웨이 (activemerchant 기반)를 활발하게 통합

새로운

/관리/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는이 일 작업을 진행 않았다 (나는 http://blog.siyelo.com/active-merchant-and-spree에 그것을보고) 나는 문제가 위에서 언급 한 것처럼 통합되어 지금은 슈 프레 :: CheckoutController 번호 업데이트에서 오류 (NoMethodError을 얻고있다. 정의되지 않은 메서드'인증 'ActiveMerchant :: Billing :: Integrations :: PayuIn : Module) – Dave

답변

1

를 나에게는 단지 법과 내 설정/application.rb 파일에

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

: 나는 코드의 유사한 라인을 추가 할 때 KED.

,,