0
我用Rails 3.1和1.17 ActiveMerchant無法獲得ActiveMerchant使用Rails 3服務器
我打電話PaymentExpress網關,使用正確的測試信用卡細節作出迴應。但是,它一直給予某種形式的無效回覆。
我可以做出來的最多的是,該response.params數組包含
{"re_co"=>"Zz", "response_text"=>"Error in getting response.", "success"=>"0"}
這是使用本地服務器的軌道。
我有一個預感,它可能與SSL verify_peer選項,雖然我沒有辦法證明,我不知道如何配置該選項。
這是我的代碼,相當標準的東西:
credit_card = ActiveMerchant::Billing::CreditCard.new(params[:credit_card])
gateway = ActiveMerchant::Billing::PaymentExpressGateway.new(:login => APP_CONFIG[:dps_username], :password => APP_CONFIG[:dps_password])
response = gateway.authorize total_cents, credit_card
有趣的是,它似乎從鐵軌控制檯做工精細。有沒有我應該採取的任何步驟來調試?