class Mercadopago::Endpoint::Payment

Constants

ENDPOINT

Public Instance Methods

cancel() click to toggle source
# File lib/mercadopago/endpoint/payment.rb, line 19
def cancel
  rest_client.put(member_endpoint, {status: "cancelled"})
end
create() click to toggle source
# File lib/mercadopago/endpoint/payment.rb, line 11
def create
  rest_client.post(ENDPOINT, data)
end
get() click to toggle source
# File lib/mercadopago/endpoint/payment.rb, line 6
def get
  endpoint = data[:id] ? member_endpoint : ENDPOINT
  rest_client.get(endpoint)
end
refund() click to toggle source
# File lib/mercadopago/endpoint/payment.rb, line 15
def refund
  rest_client.put(member_endpoint + "/refunds")
end