lib/mercadopago.php
public function create_preapproval_payment($preapproval_payment) {
        $request = array(
            "uri" => "/preapproval",
            "params" => array(
                "access_token" => $this->get_access_token()
            ),
            "data" => $preapproval_payment
        );

        $preapproval_payment_result = MPRestClient::post($request);
        return $preapproval_payment_result;
    }
public function create_preapproval_payment($preapproval_payment) {
        $request = array(
            "uri" => "/preapproval",
            "params" => array(
                "access_token" => $this->get_access_token()
            ),
            "data" => $preapproval_payment
        );

        $preapproval_payment_result = MPRestClient::post($request);
        return $preapproval_payment_result;
    }
public function create_preapproval_payment ( $ preapproval_payment ) { $ request = array ( "uri" => "/preapproval" , "params" => array ( "access_token" => $ this -> get_access_token ( ) ) , "data" => $ preapproval_payment ) ; $ preapproval_payment_result = MPRestClient :: post ( $ request ) ; return $ preapproval_payment_result ; }
Create a preapproval payment
@param array $preapproval_payment
@return array(json)
Create a preapproval payment