创建条纹总结报告 [英] Creating a Stripe Summary Report

查看:173
本文介绍了创建条纹总结报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近切换支付处理条纹。我现在需要为我们的财务部门的一份报告显示交易的指定日期范围内汇总。我开始创建一个简单的PHP网页(并使用PHP条纹库),这将使下面的摘要:

I've recently switched payment processing to Stripe. I now need to create a report for our finance department that shows a rollup of transactions within a specified date range. I've started to create a simple PHP web page (and using the Stripe PHP library) that will give the following summaries:


  • 交易计数

  • 交易金额

  • 退款计数

  • 退款金额

  • 费用

  • 网络

我有一些麻烦搞清楚如何正确查询与条纹费用为我的报告目的。

I'm having some trouble figuring out how to properly query charges with Stripe for my reporting purposes.

我知道我可以检索与收费标准:

I know I can retrieve charges with:

$charges = Stripe_Charge::all();

和从返回集的费用,我可以计算我需要报告的摘要信息。然而,这只会返回我最大100收费,我不知道如何在指定日期范围内退还费用。

And from the returned set of charges, I can compute the summary information that I need in the report. However, this will only return me a maximum of 100 charges, and I don't know how to return the charges within a specified date range.

我希望更多的有经验的开发人员条纹可以点我建设,我需要报告的正确方法。

I'm hoping more experienced Stripe developers can point me to the correct method of building the report I need.

我怎么能返回指定日期范围内的所有费用?

有没有更好的方式来获得这条信息汇总?

推荐答案

我从条纹的员工得到确认,只有两个选项实际上都是在回答所描述的从@dwhalen和@Saikat查克拉巴蒂。

I received confirmation from a Stripe employee that the only two options are in fact the ones described in the answers from @dwhalen and @Saikat Chakrabarti.

从条纹员工的的同样的问题,我问的条纹

除了您所描述的选项(检索的所有费用,或
  在你的数据库跟踪的收费进来)没有任何
  生产要在有统计数据的另一种方式。

Other than the options you described (retrieving all charges, or tracking in your database as charges come in) there isn't any alternative way of producing the stats that you want there.

这篇关于创建条纹总结报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆