簡體   English   中英

如何使用laravel收銀員從條紋中獲得成功的付款或交易

[英]how to get successfull payments or transaction from stripe using laravel cashier

如何使用 laravel 收銀員從 Stripe 獲得針對特定用戶的成功付款或交易。 我用谷歌搜索,但仍然找不到合適的解決方案。

雖然在 Cashier 中可能有一種本地方法可以執行此操作,但我不知道針對 API 執行此操作的方法是列出 PaymentIntent(或費用)並按客戶進行過濾,例如:

$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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM