For example, I want to sell a product that includes membership and monthly payment, R $ X, XX + R $ X, XX automatic debit.
Example of automatic debit:
$preapproval_data = array(
"payer_email" => "[email protected]",
"back_url" => "http://www.google.com.br",
"reason" => "TESTE",
"external_reference" => "OP-1234",
"auto_recurring" => array(
"frequency" => 1,
"frequency_type" => "months",
"transaction_amount" => 0.5,
"currency_id" => "BRL",
"start_date" => "2016-09-20T20:58:11.778-03:00"
)
);
$preference = $mp->create_preapproval_payment($preapproval_data);
Simple payment example:
$preference_data = array(
"reason" => "Adesão",
"items" => array(
array(
"title" => "Adesão",
"currency_id" => "BRL",
"category_id" => "",
"quantity" => 1,
"unit_price" => 100
)
),
"payment_methods" => array(
"installments" => 24
)
);
$preference = $mp->create_preference($preference_data);
Would you have any way to create a transaction that includes the two payment methods ?