lib/mercadopago.php
public function cancel_preapproval_payment($id) {
        $request = array(
            "uri" => "/preapproval/{$id}",
            "params" => array(
                "access_token" => $this->get_access_token()
            ),
            "data" => array(
                "status" => "cancelled"
            )
        );

        $response = MPRestClient::put($request);
        return $response;
    }
public function cancel_preapproval_payment($id) {
        $request = array(
            "uri" => "/preapproval/{$id}",
            "params" => array(
                "access_token" => $this->get_access_token()
            ),
            "data" => array(
                "status" => "cancelled"
            )
        );

        $response = MPRestClient::put($request);
        return $response;
    }
public function cancel_preapproval_payment ( $ id ) { $ request = array ( "uri" => "/preapproval/{$id}" , "params" => array ( "access_token" => $ this -> get_access_token ( ) ) , "data" => array ( "status" => "cancelled" ) ) ; $ response = MPRestClient :: put ( $ request ) ; return $ response ; }
Cancel preapproval payment
@param int $id
@return array(json)
Cancel preapproval payment