【问题标题】:how to get successfull payments or transaction from stripe using laravel cashier如何使用 laravel 收银员从 Stripe 获得成功的付款或交易
【发布时间】:2021-02-14 20:30:04
【问题描述】:

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

【问题讨论】:

    标签: laravel stripe-payments payment-gateway laravel-cashier


    【解决方案1】:

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

    【讨论】:

    • 感谢您宝贵的时间和帮助。您的回复对解决我的问题很有帮助
    猜你喜欢
    • 2016-02-15
    • 1970-01-01
    • 2018-11-12
    • 2016-07-18
    • 1970-01-01
    • 2020-02-20
    • 2016-05-23
    • 2018-09-26
    • 2017-10-24
    相关资源
    最近更新 更多