Sha256: 0ddce801ef8d6221aeced3461f0613283aabf06e9dff24f3be1b9390acdc5a28
Contents?: true
Size: 529 Bytes
Versions: 18
Compression:
Stored size: 529 Bytes
Contents
module CatarsePagarme class SlipTransaction < TransactionBase def charge! unless payment.update_attributes({ gateway: 'Pagarme', payment_method: payment_method}) raise ::PagarMe::PagarMeError.new( payment.errors.messages.values.flatten.to_sentence) end self.transaction = PagarMe::Transaction.new(self.attributes) self.transaction.charge change_payment_state self.transaction end def payment_method PaymentType::SLIP end end end
Version data entries
18 entries across 18 versions & 1 rubygems