2010-12-14 6 views
1

Ich erhalte einen Segmentierungsfehler, wenn ich versuche, authorize.net auf dem Authorize.net-Gateway anzurufen, ob ich Test- oder Live-Anmeldeinformationen verwende. Ich verwende die neueste Version von ActiveMerchant. Irgendwelche Ideen zur Lösung dieses Problems?So lösen Sie ActiveMerchant ein Authorize.net-Gateway Problem

credit_card = ActiveMerchant::Billing::CreditCard.new(:first_name => "First", :last_name => "Last", :number => "4007000000027", :month => "07", :year => "2012", :verification_value => "111", :type => 'visa') 
options = { :billing_address => {:name => "First Last", :address1 => "12 Candy Ln", :city => "Sugarville", :state => "IL", :zip => "12345", :country => "USA" }, :description => "00001" } 
gateway = ActiveMerchant::Billing::AuthorizeNetGateway.new(:login => 'scraped', :password => 'scraped', :test => true) 

/Users/foo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/net/http.rb:586: [BUG] Segmentation fault 
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.4.0] 

Antwort

1

Für mich ist die Lösung für dieses mit einer RVM-Version von Rubin mit dem RVM OpenSSL-Paket zu installieren ist: http://rvm.beginrescueend.com/packages/openssl/

Insbesondere ich folgendes zum Installieren Rubin 1.8.7-P174 :

rvm package install iconv 
rvm package install openssl 
rvm install 1.8.7-p174 --with-openssl-dir=$HOME/.rvm/usr --with-iconv-dir=$rvm_path/usr 
+0

funktioniert für mich auch in 1.9.2. DANKE! – corroded