class Pingpp::Charge

Public Class Methods

reverse(id, opts={}) click to toggle source
# File lib/pingpp/charge.rb, line 6
def self.reverse(id, opts={})
  id, reverse_params = Util.normalize_id(id)
  response, opts = request(:post, "#{resource_url(opts)}/#{CGI.escape(id)}/reverse", reverse_params, opts)
  Util.convert_to_pingpp_object(response, opts)
end

Private Instance Methods

refund_url() click to toggle source
# File lib/pingpp/charge.rb, line 14
def refund_url
  resource_url + '/refunds'
end