Sha256: 1129835f3f39d8b43a7e1269b069bc5652492a3d2493378c29af6b13940b9ac9
Contents?: true
Size: 585 Bytes
Versions: 3
Compression:
Stored size: 585 Bytes
Contents
# encoding: utf-8 require 'openssl' require 'base64' require File.join(File.dirname(__FILE__), '..', 'pagarme') module PagarMe class Transaction < TransactionCommon def self.calculate_installments(params) request = PagarMe::Request.new('/transactions/calculate_installments_amount', 'GET') request.parameters.merge!(params) response = request.run response end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pagarme-1.9.5 | lib/pagarme/transaction.rb |
pagarme-1.9.4 | lib/pagarme/transaction.rb |
pagarme-1.9.3 | lib/pagarme/transaction.rb |