I've tried with 3 different users, but with all of them Paypal returns me an auth erros. Here's the relevant parts of my env:
ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]
Gemfile
gem 'rails', '3.2.3'
gem 'activemerchant', '1.17.0', require: 'active_merchant'
gem 'active_paypal_adaptive_payment', '~> 0.3.13'
Debug (I've added headers to the debug method, and added the IP address also):
Url: https://svcs.sandbox.paypal.com/AdaptivePayments/Pay
Headers: {"X-PAYPAL-REQUEST-DATA-FORMAT"=>"XML", "X-PAYPAL-RESPONSE-DATA-FORMAT"=>"JSON", "X-PAYPAL-SECURITY-USERID"=>"****", "X-PAYPAL-SECURITY-PASSWORD"=>"**", "X-PAYPAL-SECURITY-SIGNATURE"=>"***", "X-PAYPAL-APPLICATION-ID"=>"APP-80W284485P519543T", "X-PAYPAL-DEVICE-IPADDRESS"=>"127.0.0.1"}
Request:
ReturnAll
en_US
PAY
http://localhost:3000/pt/paypal/8/cancel
http://localhost:3000/pt/paypal/8/success
currencyCode:BRL/
[email protected]
55.0
true
false
Response: {"responseEnvelope":{"timestamp":"2012-05-25T10:33:38.824-07:00","ack":"Failure","correlationId":"6fd3fcb2e9390","build":"2945555"},"error":[{"errorId":"520003","domain":"PLATFORM","subdomain":"Application","severity":"Error","category":"Application","message":"Authentication failed. API credentials are incorrect."}]}"