Skip to content

Commit

Permalink
Merge remote-tracking branch 'zunger/add-exchange-rate-to-response-info'
Browse files Browse the repository at this point in the history
  • Loading branch information
nov committed Feb 2, 2013
2 parents 29ff615 + c48c768 commit f5f3504
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/paypal/payment/response/info.rb
Expand Up @@ -18,7 +18,8 @@ class Response::Info < Base
:TRANSACTIONID => :transaction_id, :TRANSACTIONID => :transaction_id,
:TRANSACTIONTYPE => :transaction_type, :TRANSACTIONTYPE => :transaction_type,
:PAYMENTREQUESTID => :request_id, :PAYMENTREQUESTID => :request_id,
:SELLERPAYPALACCOUNTID => :seller_id :SELLERPAYPALACCOUNTID => :seller_id,
:EXCHANGERATE => :exchange_rate
} }
attr_accessor *@@attribute_mapping.values attr_accessor *@@attribute_mapping.values
attr_accessor :amount attr_accessor :amount
Expand All @@ -41,4 +42,4 @@ def initialize(attributes = {})
end end
end end
end end
end end
5 changes: 3 additions & 2 deletions spec/paypal/payment/response/info_spec.rb
Expand Up @@ -25,7 +25,8 @@
:RECEIPTID => '12345', :RECEIPTID => '12345',
:SECUREMERCHANTACCOUNTID => '123456789', :SECUREMERCHANTACCOUNTID => '123456789',
:PAYMENTREQUESTID => '12345', :PAYMENTREQUESTID => '12345',
:SELLERPAYPALACCOUNTID => 'seller@shop.example.com' :SELLERPAYPALACCOUNTID => 'seller@shop.example.com',
:EXCHANGERATE => '0.811965'
} }
end end


Expand Down Expand Up @@ -89,4 +90,4 @@
end end
end end
end end
end end

0 comments on commit f5f3504

Please sign in to comment.