本文整理汇总了PHP中MP::search_withdrawals方法的典型用法代码示例。如果您正苦于以下问题:PHP MP::search_withdrawals方法的具体用法?PHP MP::search_withdrawals怎么用?PHP MP::search_withdrawals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MP
的用法示例。
在下文中一共展示了MP::search_withdrawals方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: MP
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once "lib/mercadopago.php";
$mp = new MP("2526", "CX3tqGkTmUrTQAEzY903w2alP908QSss");
if (isset($_POST["find"])) {
$_POST["dtini"] = $_POST["dtini"] . "T00:00:00.00Z";
$_POST["dtfim"] = $_POST["dtfim"] . "T23:00:00.00Z";
$filters = array("range" => "date_created", "begin_date" => $_POST["dtini"], "end_date" => $_POST["dtfim"]);
} else {
$filters = array("range" => "date_created", "begin_date" => "NOW-2MONTH", "end_date" => "NOW");
}
$searchResult = $mp->search_withdrawals($filters);
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Search Withdrawals - EasyTaxi</title>
<script src="incs/js/jquery.js"></script>
<script src="incs/js/jquery.maskedinput.min.js"></script>
<script src="incs/js/jquery.maskMoney.min.js"></script>
<script src="incs/js/bootstrap.min.js"></script>
<script src="incs/js/bootstrap-datepicker.js" charset="UTF-8" ></script>