Class: Mercadopago::PaymentMethods

Inherits:
MPBase
  • Object
show all
Defined in:
lib/mercadopago/resources/payment_methods.rb

Overview

Lists the payment methods available for the caller’s MercadoPago site (credit cards, debit cards, bank transfer, cash, etc.).

Useful for building dynamic checkout forms that only show the methods the buyer can actually use.

Instance Method Summary collapse

Methods inherited from MPBase

#_check_headers, #_check_request_options, #_delete, #_get, #_post, #_put, #initialize

Constructor Details

This class inherits a constructor from Mercadopago::MPBase

Instance Method Details

#get(request_options: nil) ⇒ Hash{Symbol => Object}

Retrieves all payment methods available for the authenticated account.

Parameters:

  • request_options (RequestOptions, nil) (defaults to: nil)

    per-call configuration override

Returns:

  • (Hash{Symbol => Object})

    :status and :response with an array of payment methods

See Also:



18
19
20
# File 'lib/mercadopago/resources/payment_methods.rb', line 18

def get(request_options: nil)
  _get(uri: '/v1/payment_methods', request_options: request_options)
end