首页 > 解决方案 > 如何使用 laravel 收银员从 Stripe 获得成功的付款或交易

问题描述

如何使用 laravel 收银员从 stripe 中获得针对特定用户的成功付款或交易。我用谷歌搜索,但仍然找不到合适的解决方案。

标签: laravelstripe-paymentspayment-gatewaylaravel-cashier

解决方案


虽然在 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


推荐阅读