我正在尝试让PayPal Gateway在rails 3应用上运行。 但我一直在打这个错误“未初始化的常量ActiveMerchant :: Billing :: PayPalGateway(NameError)”
我在我的开发中有这个.rb:
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::PayPalGateway.new(
:login => "API USERNAME ",
:password => "API PASSWORD",
:signature => "API SIGNATURE"
)
请帮忙!
答案 0 :(得分:3)
您的大写错误。尝试:
ActiveMerchant::Billing::PaypalGateway