Get payment methods
It is possible to consult the available payment methods and obtain a list with the details of each one using the SDK below. For details on request parameters, check the Get payment methods API.
var mercadopago = require('mercadopago');
mercadopago.configurations.setAccessToken(config.access_token);
var response = await mercadopago.payment_methods.listAll();
var payment_methods = response.body;