Permalink
Browse files

Merge remote-tracking branch 'zunger/add-exchange-rate-to-response-info'

  • Loading branch information...
2 parents 29ff615 + c48c768 commit f5f3504fd8fc84f8028048ac0c79e2e4fbedbbe7 @nov committed Feb 2, 2013
Showing with 6 additions and 4 deletions.
  1. +3 −2 lib/paypal/payment/response/info.rb
  2. +3 −2 spec/paypal/payment/response/info_spec.rb
@@ -18,7 +18,8 @@ class Response::Info < Base
:TRANSACTIONID => :transaction_id,
:TRANSACTIONTYPE => :transaction_type,
:PAYMENTREQUESTID => :request_id,
- :SELLERPAYPALACCOUNTID => :seller_id
+ :SELLERPAYPALACCOUNTID => :seller_id,
+ :EXCHANGERATE => :exchange_rate
}
attr_accessor *@@attribute_mapping.values
attr_accessor :amount
@@ -41,4 +42,4 @@ def initialize(attributes = {})
end
end
end
-end
+end
@@ -25,7 +25,8 @@
:RECEIPTID => '12345',
:SECUREMERCHANTACCOUNTID => '123456789',
:PAYMENTREQUESTID => '12345',
- :SELLERPAYPALACCOUNTID => 'seller@shop.example.com'
+ :SELLERPAYPALACCOUNTID => 'seller@shop.example.com',
+ :EXCHANGERATE => '0.811965'
}
end
@@ -89,4 +90,4 @@
end
end
end
-end
+end

0 comments on commit f5f3504

Please sign in to comment.