Sha256: 02813fd2328f4a3463366df6342c62fc6a9173813553ce5d6fd9a40d24716d17
Contents?: true
Size: 413 Bytes
Versions: 57
Compression:
Stored size: 413 Bytes
Contents
module CatarsePagarme class CreditCardTransaction < TransactionBase def charge! self.transaction = PagarMe::Transaction.new(self.attributes) self.transaction.charge if self.transaction.status == 'refused' raise ::PagarMe::PagarMeError.new(I18n.t('projects.contributions.edit.transaction_error')) end change_contribution_state self.transaction end end end
Version data entries
57 entries across 57 versions & 1 rubygems