lib/pagarme/transaction.rb in pagarme-0.13 vs lib/pagarme/transaction.rb in pagarme-0.14

- old
+ new

@@ -93,10 +93,10 @@ def chargeback raise TransactionError.new("Transaction already chargebacked!") if self.status == :chargebacked raise TransactionError.new("Transaction needs to be approved to be chargebacked") if self.status != :approved - request = PagarMe::Request.new("/transactions/#{self.id}/chargeback/", 'POST', self.live) + request = PagarMe::Request.new("/transactions/#{self.id}", 'DELETE', self.live) response = request.run update_fields_from_response(response) end