Payment operations via the Checkout API.
Summary
Functions
@spec capture( Mercadopago.Client.t(), Mercadopago.HTTP.id(), number() | nil, keyword() ) :: Mercadopago.HTTP.response()
Captures a previously authorized payment.
Omit amount to capture the full authorized amount, or pass a smaller one for
a partial capture. This is the named form of the update/4 call MercadoPago
documents for capture; update/4 remains available for any other field.
@spec create(Mercadopago.Client.t(), map(), keyword()) :: Mercadopago.HTTP.response()
Creates a payment from payment_data.
@spec get(Mercadopago.Client.t(), Mercadopago.HTTP.id(), keyword()) :: Mercadopago.HTTP.response()
Fetches a payment by id.
@spec search(Mercadopago.Client.t(), map() | nil, keyword()) :: Mercadopago.HTTP.response()
Searches payments matching filters (query-string parameters).
@spec search_stream(Mercadopago.Client.t(), map() | nil, keyword()) :: Enumerable.t()
Streams every result of search/3, fetching each page as it is consumed.
See Mercadopago.Pagination.stream/3 for the options and for how failures are
reported.
@spec update(Mercadopago.Client.t(), Mercadopago.HTTP.id(), map(), keyword()) :: Mercadopago.HTTP.response()
Updates a payment (e.g. to capture or cancel it).