Home
Documentation
Resources
Certifications
Community

Resources

Check for updates on our solutions and system performance, or request technical support.

Community

Get the latest news, ask others for help and share your knowledge.

Get payment methods - Payments - Mercado Pago Developers

Intelligent search powered by OpenAI 

Get payment methods

Through MPManager, use the instance PaymentsMethodsTools with the feature getPaymentMethods. The payment methods will be shown by an ENUM called PaymentMethod, like in the example below.

          
MPManager.paymentMethodsTools.getPaymentMethods { response ->
   response
       .doIfSuccess { result ->
           // You can render the list of payment methods in a recycler view
       }.doIfError { exception ->
           // Error management
       }
}

        
          
final Function1<MPResponse<List<PaymentMethod>>, Unit> callback = (final MPResponse<List<PaymentMethod>> response) -> {
 if (response.getStatus() == ResponseStatus.SUCCESS) {
   // You can render the list of payment methods in a recycler view
 } else {
   // Error management
 }
 return Unit.INSTANCE;
};
MPManager.INSTANCE.getPaymentMethodsTools().getPaymentMethods(callback);