Sha256: 51f7963a2b144b8939accfd76b9b7f192f19daef6948b686f703dca344be69ed

Contents?: true

Size: 257 Bytes

Versions: 4

Compression:

Stored size: 257 Bytes

Contents

module CatarsePagarme
  class CreditCardTransaction < TransactionBase
    def charge!
      self.transaction = PagarMe::Transaction.new(self.attributes)
      self.transaction.charge

      change_contribution_state
      self.transaction
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
catarse_pagarme-0.1.1 app/models/catarse_pagarme/credit_card_transaction.rb
catarse_pagarme-0.1.0 app/models/catarse_pagarme/credit_card_transaction.rb
catarse_pagarme-0.0.2 app/models/catarse_pagarme/credit_card_transaction.rb
catarse_pagarme-0.0.1 app/models/catarse_pagarme/credit_card_transaction.rb