Sha256: 381d0c6052afc1a036c7f603cd366efe2994c6edbd73aea770fd1ab7390d20aa

Contents?: true

Size: 333 Bytes

Versions: 8

Compression:

Stored size: 333 Bytes

Contents

# encoding: utf-8
require 'openssl'
require 'base64'
require File.join(File.dirname(__FILE__), '..', 'pagarme')

module PagarMe
  class Transaction < TransactionCommon
	def charge
	 	create
	end

	def refund
	  request = PagarMe::Request.new(self.url + '/refund', 'POST')
	  response = request.run
	  update(response)
	end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pagarme-1.9.2 lib/pagarme/transaction.rb
pagarme-1.9.1 lib/pagarme/transaction.rb
pagarme-1.9 lib/pagarme/transaction.rb
pagarme-1.8 lib/pagarme/transaction.rb
pagarme-1.7 lib/pagarme/transaction.rb
pagarme-1.5 lib/pagarme/transaction.rb
pagarme-1.4 lib/pagarme/transaction.rb
pagarme-1.3 lib/pagarme/transaction.rb