12
For example I want to sell a product that includes membership and tuition, 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",
        "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);
Example of simple payment:
$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 some way to create a transaction that includes the two payment methods?
Is there a way to do that? Of course there is. But I doubt that anyone will do it for you without you having shown that things have already tried you..
– MoshMage
Exactly, it will be difficult to help people. Put there what you have tried that is easier.
– Diego