laravel - 如何使用 laravel 收银员从 Stripe 获得成功的付款或交易
问题描述
如何使用 laravel 收银员从 stripe 中获得针对特定用户的成功付款或交易。我用谷歌搜索,但仍然找不到合适的解决方案。
解决方案
虽然在 Cashier 中可能有一种本地方式来执行此操作,但我不知道针对 API 执行此操作的方法是列出 PaymentIntents(或费用)并按客户过滤,例如:
$payment_intents = $stripe->paymentIntents->all(['customer' => 'cus_xxx']);
[1] https://stripe.com/docs/api/payment_intents/list?lang=php#list_payment_intents-customer
[2] https://stripe.com/docs/api/charges/list?lang=php#list_charges-customer
推荐阅读
- apache-pig - Pig Apache 问题最重的排名输出?
- flutter - 快速滚动时从最后一页开始的 SliverChildBuilderDelegate 中的 PageView
- c# - 将 ASP.NET Core gRPC 配置为在服务器和客户端上都使用 SSL/TLS
- python - 试图在 python 中读取我的 .json 数据但不断收到错误
- php - 使用 SQL 或 PHP 按字母顺序排列多维数组
- ajax - WordPress帖子分页不适用于ajax
- delphi - Delphi Barcode Scanning - 进入只读编辑框
- android - 从 android 应用程序访问 facebook 页面时出现问题
- python - 如何在 python 中将时间添加到持续时间,而不是一天中的时间?
- kotlin - Kotlin 适配器模式:getter 函数上的方法名称重复错误