lib/braintree/transaction.rb in braintree-1.1.1 vs lib/braintree/transaction.rb in braintree-1.1.2

- old
+ new

@@ -125,13 +125,16 @@ end attr_reader :avs_error_response_code, :avs_postal_code_response_code, :avs_street_address_response_code attr_reader :amount, :created_at, :credit_card_details, :customer_details, :id, :status attr_reader :custom_fields + attr_reader :cvv_response_code attr_reader :order_id attr_reader :billing_details, :shipping_details attr_reader :status_history + # The authorization code from the processor. + attr_reader :processor_authorization_code # The response code from the processor. attr_reader :processor_response_code # The response text from the processor. attr_reader :processor_response_text # Will either be "sale" or "credit" @@ -243,11 +246,11 @@ first = [:id, :type, :amount, :status] order = first + (self.class._attributes - first) nice_attributes = order.map do |attr| if attr == :amount self.amount ? "amount: #{self.amount.to_s("F").inspect}" : "amount: nil" - else + else "#{attr}: #{send(attr).inspect}" end end "#<#{self.class} #{nice_attributes.join(', ')}>" end @@ -379,10 +382,10 @@ end def self._create_signature # :nodoc: [ :amount, :customer_id, :order_id, :payment_method_token, :type, - {:credit_card => [:token, :cvv, :expiration_date, :number]}, + {:credit_card => [:token, :cvv, :expiration_date, :expiration_month, :expiration_year, :number]}, {:customer => [:id, :company, :email, :fax, :first_name, :last_name, :phone, :website]}, {:billing => [:first_name, :last_name, :company, :country_name, :extended_address, :locality, :postal_code, :region, :street_address]}, {:shipping => [:first_name, :last_name, :company, :country_name, :extended_address, :locality, :postal_code, :region, :street_address]}, {:options => [:store_in_vault, :submit_for_settlement, :add_billing_address_to_payment_method, :store_shipping_address_in_vault]}, {:custom_fields => :_any_key_}