Change endpoints in installments and issuers
package com.mercadopago.services;
+import com.mercadopago.BuildConfig;
import com.mercadopago.adapters.MPCall;
import com.mercadopago.model.Installment;
import com.mercadopago.model.Issuer;
@@ -16,10 +17,10 @@ public interface PaymentService {
@GET("/v1/payment_methods")
MPCall<List<PaymentMethod>> getPaymentMethods(@Query("public_key") String publicKey, @Query("access_token") String privateKey);
- @GET("/v1/payment_methods/installments")
+ @GET("/" + BuildConfig.API_VERSION + "/checkout/payment_methods/installments")
MPCall<List<Installment>> getInstallments(@Query("public_key") String publicKey, @Query("access_token") String privateKey, @Query("bin") String bin, @Query("amount") BigDecimal amount, @Query("issuer.id") Long issuerId, @Query("payment_method_id") String paymentMethodId, @Query("locale") String locale, @Query("processing_mode") String processingMode);
- @GET("/v1/payment_methods/card_issuers")
+ @GET("/" + BuildConfig.API_VERSION + "/checkout/payment_methods/card_issuers")
MPCall<List<Issuer>> getIssuers(@Query("public_key") String publicKey, @Query("access_token") String privateKey, @Query("payment_method_id") String paymentMethodId, @Query("bin") String bin, @Query("processing_mode") String processingMode);
}
\ No newline at end of file
