【问题标题】:Stripe: Accessing a payout from a chargeStripe:从费用中获取付款
【发布时间】:2018-03-26 04:31:04
【问题描述】:

我正在尝试从 charge 对象 (https://stripe.com/docs/api#charges) 访问 payout 对象 (https://stripe.com/docs/api#payouts)。问题是我不知道payout 使用什么ID。我尝试使用来自payoutstransfer ID,但出现错误:

No such payout: tr_1Bxxxxxxxxxx

我也知道payout 的ID 格式为po_xxxxxxxxxxxxxxx,但我在chargetransferbalanced_transaction 中找不到任何ID。 payout与收费有什么关系?

【问题讨论】:

    标签: node.js stripe-payments stripe-connect


    【解决方案1】:

    没有直接的方法可以从 Charge 对象 ch_xxxyyyzzz 获取 Payout,但如果您的帐户设置为自动付款,您可以获得费用清单和任何其他余额交易(退款、构成特定支付对象的调整等)。

    https://stripe.com/docs/api#balance_history-payout

    stripe.balance.listTransactions({payout:"po_xxxyyyyyyzzz",limit: 100 }, 
    function(err, transactions) {
      // asynchronously called
    });
    

    支付和转账是两种不同类型的对象。支付总是指将资金从您的余额转移到您的银行账户。转账是指资金在 Stripe 账户之间移动,通常在 Stripe 的 Connect 中。

    https://stripe.com/docs/transfer-payout-split

    【讨论】:

    • 哦,完美,天平有我需要的东西!谢谢!
    猜你喜欢
    • 2018-05-31
    • 2015-09-23
    • 1970-01-01
    • 2022-01-21
    • 1970-01-01
    • 2019-04-22
    • 2021-08-24
    • 2020-12-02
    • 2018-09-12
    相关资源
    最近更新 更多