As I fixed the number of installments in a payment with the api de mercadopago in php

0

I'm doing a checkout very basic, and I want to make it clear that you can only pay in 1 installment, how do I do that? I think it's from the preferences, but I do not know how. So I have the preferences now:

$preference_data = array(
  "items" => array(
    array(
      "title" => "Multicolor kite",
      "quantity" => 1,
      "currency_id" => "ARS", // Available currencies at: https://api.mercadopago.com/currencies
      "unit_price" => 10
    )
  )
);
    
asked by Christian Russo 18.05.2017 в 00:47
source

1 answer

0

You can try as follows:

$preference_data = array(
  "items" => array(
    array(
      "title" => "Multicolor kite",
      "quantity" => 1,
      "currency_id" => "ARS", // Available currencies at: https://api.mercadopago.com/currencies
      "unit_price" => 10
    )
  ),
"payment_methods" => array(

        "installments" => 1
    )
);
    
answered by 19.07.2017 в 19:37