lib/pagarme/transaction.rb in pagarme-1.0 vs lib/pagarme/transaction.rb in pagarme-1.1

- old
+ new

@@ -12,10 +12,11 @@ :amount => self.amount, :payment_method => self.payment_method, :installments => self.installments, :card_hash => (self.payment_method == 'credit_card' ? self.card_hash : nil), :postback_url => self[:postback_url], - :customer => (self.customer) ? self.customer.to_hash : nil + :customer => (self.customer) ? self.customer.to_hash : nil, + :metadata => self.metadata } end def charge validation_error = self[:card_hash] ? nil : validate