【发布时间】:2021-02-14 20:30:04
【问题描述】:
如何使用 laravel 收银员从条带中获得针对特定用户的成功付款或交易。我用谷歌搜索,但仍然找不到合适的解决方案。
【问题讨论】:
标签: laravel stripe-payments payment-gateway laravel-cashier
如何使用 laravel 收银员从条带中获得针对特定用户的成功付款或交易。我用谷歌搜索,但仍然找不到合适的解决方案。
【问题讨论】:
标签: laravel stripe-payments payment-gateway laravel-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
【讨论】: