Integrate payment methods - Integration stages - Mercado Pago Developers

Integrate payment methods

With Checkout API, you can choose which payment methods you want to make available in online stores.

The integration process is based on the individual configuration of each of these payment methods within the previously established common environment, which facilitates the integration experience while allowing for a greater level of customization.

If you want to, you can check a detailed list of all these payment methods available for integration by sending a GET with your Access TokenPrivate key of the application created in Mercado Pago, that must be used in the backend. You can access it through Your integrations > Application details > Testing > Testing Credentials or Production > Production Credentials. to the endpoint /v1/payment_methodsAPI and execute the request, or if you prefer, use one of the code snippets below.

          
<?php
  use MercadoPago\MercadoPagoConfig;

  MercadoPagoConfig::setAccessToken("ENV_ACCESS_TOKEN");

  $client = new PaymentMethodClient();
  $payment_method = $client->get();

?>

        
          
import { MercadoPagoConfig, PaymentMethods } from 'mercadopago';

const client = new MercadoPagoConfig({ accessToken: 'access_token' });
const paymentMethods = new PaymentMethods(client);

paymentMethods.get().then((result) => console.log(result))
  .catch((error) => console.log(error));

        
          
MercadoPagoConfig.setAccessToken("ENV_ACCESS_TOKEN");

PaymentMethodClient client = new PaymentMethodClient();
client.list();


        
          
require 'mercadopago'
sdk = Mercadopago::SDK.new('ENV_ACCESS_TOKEN')

payment_methods_response = sdk.payment_methods.get()
payment_methods = payment_methods_response[:response]


        
          
using MercadoPago.Client.PaymentMethod;
using MercadoPago.Config;
using MercadoPago.Resource;
using MercadoPago.Resource.PaymentMethod;

MercadoPagoConfig.AccessToken = "ENV_ACCESS_TOKEN";

var client = new PaymentMethodClient();
ResourcesList<PaymentMethod> paymentMethods = await client.ListAsync();


        
          
import mercadopago
sdk = mercadopago.SDK("ACCESS_TOKEN")

payment_methods_response = sdk.payment_methods().list_all()
payment_methods = payment_methods_response["response"]

        
          
curl -X GET \
    -H 'accept: application/json' \
    -H 'content-type: application/json' \
    -H 'Authorization: Bearer ENV_ACCESS_TOKEN' \
    'https://api.mercadopago.com/v1/payment_methods' \

        

With this information, you can now select the payment methods you want to offer and proceed with your integration.

Remember: before setting up the payment methods, choose the way you will process your transactions. The processing mode, whether manual or automatic, will be defined at the time of order creation, using the processing_mode parameter. For more information, visit the section Integration model.
Cards
Securely receive payments with credit or debit cards through a payment form within the checkout.
Other payment methods
Receive the deferred payments that the customer makes through OXXO, Paycash, Citibanamex, Santander or BBVA Bancomer in your account.
SPEI Transfers
Receive instant electronic payments by offering your customers the option to pay from any bank or financial institution using their CLABE.