Skip to content

Payment

Ariel Rey edited this page Jan 20, 2017 · 5 revisions

The methods available on payment are:

  • create - Create a Payment
  • update - Update a Payment
  • get - Get a Payment
  • search - Searching Payments

Wrapper Methods:

  • cancel - Cancel a Payment
  • refund - Refund a Payment
  • refundPartial - Refund partial amount from a Payment

The method functionality was already explain here.

For API references click here.

Wrapper Methods

Methods like cancel, refund and refundPartial are wrappers of put and post methods that add the correspondent values on the payload. For Example:

If you want to cancel a payment you need to do:

mercadopago.payment.update({
  id: 1,
  status: 'cancelled'
}).then().catch();

But, you can more easily make:

mercadopago.payment.cancel(1).then.catch();

Clone this wiki locally