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 list of installments - Payments - Mercado Pago Developers

Intelligent search powered by OpenAI 

Get list of installments

To get the list of installments linked to a specific amount, use the feature getInstallmentsAmount. Its accessible in the PaymentInstallmentTools instance, through the MPManager object.

The function getInstallmentsAmount simplifies the process of obtaining detailed information about the installments associated with a specific amount.

Attention
Currently this option will only be available for solutions implemented within Brazil.

To use this feature, you have to:

  1. Select the CREDIT-CARD payment method.
  2. Use an amount greater than R$10,00.

Like this:

          
MPManager.paymentInstallmentTools.getInstallmentsAmount(
   callback = { mpResponse ->
       mpResponse.doIfSuccess { installments ->
           // Successfully manage the list of installments
       }.doIfError {
           // Manage the error in the installment request 
       }
   },
   amount = "11.0"
)

        
          
final PaymentInstallmentTools paymentInstallmentTools = MPManager.INSTANCE.getPaymentInstallmentTools();

final Function1<MPResponse<List<InstallmentAmount>>, Unit> callback = (final MPResponse<List<InstallmentAmount>> response) -> {
 if (response.getStatus() == ResponseStatus.SUCCESS) {
   // Successfully manage the list of installments
 } else {
   // Manage the error in the installment request 
 }
 return Unit.INSTANCE;
};
final String amount = "11.0";

paymentInstallmentTools.getInstallmentsAmount(callback, amount);

        
FieldDescription
callback ((MPResponse<List<InstallmentAmount>>) -> Unit)Response feature with the result of the request of the list of installments. Make sure to properly handle both the success case and the error case when requesting the list.
amount (String)Amount with which the list of installments is determined.
installment (Int)Number of installments.
amount (Double)Amount of each installment.
financialAmount (Double)Interest rate for each installment.