This is clearly a Paypal/stupid dev prob - thanks for your patience.
On May 17, 12:39 pm, "Cody Fauser" <
codyfau...@gmail.com> wrote:
> Try the following:
> sudo gem install money
> sudo gem install mocha
> sudo gem install rails
/www/scents> gem list
*** LOCAL GEMS ***
mocha (0.5.6, 0.5.5)
money (1.7.1)
rails (2.0.2, 1.2.2)
> If you're using the API signature then open up test/fixtures.yml and edit
> the paypal_signature entry to use your credentials. Then change the remote
> test test/remote/gateways/remote_paypal_test.rb to use the signature by
> changing fixtures(:paypal_certificate) to fixtures(:paypal_signature) at the
> top.
paypal_signature:
login:
paul_b...@domain.com
password: 121....851
signature: AMCrVazGwUVXlz9Lb......rM1pSSl6i
> You should now be able to the run the remote_paypal_test.rb
Changed a couple things in the test - with a sandboxed card, "Test
User" is the cardholder name in sandbox etc.
@creditcard = CreditCard.new(
:type => "Visa",
:number => "4083089508820805", # Use a generated CC
from the paypal Sandbox, CHECK
:verification_value => "000",
:month => 1,
:year => 2009,
:first_name => 'Test',
:last_name => 'User'
)
@params = {
:order_id => generate_unique_id,
:email => '
bu...@jadedpallet.com',
:billing_address => { :name => 'Test User',
:address1 => '1234 Penny Lane',
:city => 'Jonsetown',
:state => 'NC',
:country => 'US',
:zip => '23456'
} ,
:description => 'Stuff that you purchased, yo!',
:ip => '10.0.0.1'
}
They run ;0) All of them seem to fail here.
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `__send__'
1) Failure:
test_failed_multiple_transfer(PaypalTest)
[remote_paypal_test.rb:160:in `test_failed_multiple_transfer'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `__send__'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `run']:
Response failed: #<ActiveMerchant::Billing::Response:0x12e6d54
@message=nil, @test=true, @authorization=nil, @success=false,
@cvv_result={"message"=>nil, "code"=>nil}, @params={},
@fraud_review=nil, @avs_result={"message"=>nil, "code"=>nil,
"street_match"=>nil, "postal_match"=>nil}>.
<false> is not true.
2) Failure:
test_purchase_and_full_credit(PaypalTest)
[remote_paypal_test.rb:116:in `test_purchase_and_full_credit'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `__send__'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `run']:
Response failed: #<ActiveMerchant::Billing::Response:0x1a4c3dc
@message=nil, @test=true, @authorization=nil, @success=false,
@cvv_result={"message"=>nil, "code"=>nil}, @params={},
@fraud_review=nil, @avs_result={"message"=>nil, "code"=>nil,
"street_match"=>nil, "postal_match"=>nil}>.
<false> is not true.
3) Failure:
test_successful_authorization(PaypalTest)
[remote_paypal_test.rb:64:in `test_successful_authorization'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `__send__'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `run']:
Response failed: #<ActiveMerchant::Billing::Response:0x1a1e1e4
@message=nil, @test=true, @authorization=nil, @success=false,
@cvv_result={"message"=>nil, "code"=>nil}, @params={},
@fraud_review=nil, @avs_result={"message"=>nil, "code"=>nil,
"street_match"=>nil, "postal_match"=>nil}>.
<false> is not true.
4) Failure:
test_successful_capture(PaypalTest)
[remote_paypal_test.rb:99:in `test_successful_capture'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `__send__'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `run']:
Response failed: #<ActiveMerchant::Billing::Response:0x19f05b4
@message=nil, @test=true, @authorization=nil, @success=false,
@cvv_result={"message"=>nil, "code"=>nil}, @params={},
@fraud_review=nil, @avs_result={"message"=>nil, "code"=>nil,
"street_match"=>nil, "postal_match"=>nil}>.
<false> is not true.
5) Failure:
test_successful_multiple_transfer(PaypalTest)
[remote_paypal_test.rb:150:in `test_successful_multiple_transfer'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `__send__'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `run']:
Response failed: #<ActiveMerchant::Billing::Response:0x19bdbf0
@message=nil, @test=true, @authorization=nil, @success=false,
@cvv_result={"message"=>nil, "code"=>nil}, @params={},
@fraud_review=nil, @avs_result={"message"=>nil, "code"=>nil,
"street_match"=>nil, "postal_match"=>nil}>.
<false> is not true.
6) Failure:
test_successful_purchase(PaypalTest)
[remote_paypal_test.rb:44:in `test_successful_purchase'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `__send__'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `run']:
Response failed: #<ActiveMerchant::Billing::Response:0x19a21c0
@message=nil, @test=true, @authorization=nil, @success=false,
@cvv_result={"message"=>nil, "code"=>nil}, @params={},
@fraud_review=nil, @avs_result={"message"=>nil, "code"=>nil,
"street_match"=>nil, "postal_match"=>nil}>.
<false> is not true.
7) Failure:
test_successful_purchase_with_api_signature(PaypalTest)
[remote_paypal_test.rb:51:in
`test_successful_purchase_with_api_signature'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `__send__'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `run']:
Response failed: #<ActiveMerchant::Billing::Response:0x196bfd0
@message=nil, @test=true, @authorization=nil, @success=false,
@cvv_result={"message"=>nil, "code"=>nil}, @params={},
@fraud_review=nil, @avs_result={"message"=>nil, "code"=>nil,
"street_match"=>nil, "postal_match"=>nil}>.
<false> is not true.
8) Failure:
test_successful_transfer(PaypalTest)
[remote_paypal_test.rb:136:in `test_successful_transfer'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `__send__'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `run']:
Response failed: #<ActiveMerchant::Billing::Response:0x193bb50
@message=nil, @test=true, @authorization=nil, @success=false,
@cvv_result={"message"=>nil, "code"=>nil}, @params={},
@fraud_review=nil, @avs_result={"message"=>nil, "code"=>nil,
"street_match"=>nil, "postal_match"=>nil}>.
<false> is not true.
9) Failure:
test_successful_voiding(PaypalTest)
[remote_paypal_test.rb:109:in `test_successful_voiding'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `__send__'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/
test_case_adapter.rb:19:in `run']:
Response failed: #<ActiveMerchant::Billing::Response:0x19263b8
@message=nil, @test=true, @authorization=nil, @success=false,
@cvv_result={"message"=>nil, "code"=>nil}, @params={},
@fraud_review=nil, @avs_result={"message"=>nil, "code"=>nil,
"street_match"=>nil, "postal_match"=>nil}>.
<false> is not true.