Recurly 是否允许按时间段搜索发票?比如说,上个月,还是最近三个月的发票?我没有在文档中找到任何内容。
问问题
103 次
1 回答
1
在 Recurly.com 上,您可以按时间段导出发票https://app.recurly.com/go/exports/new
如果你想用 PHP 搜索,你可以使用这个例子:
$invoices = Recurly_InvoiceList::get();
foreach ($invoices as $invoice) {
$date = $invoice->created_at;
$result = $date->format('Y-m-d');
if($result > '2014-06-00'){
print_R($invoice);
print "\n";
}
}
于 2014-06-17T13:12:11.557 回答