【发布时间】:2020-11-04 12:53:17
【问题描述】:
我正在订阅 stripe 的 payout.paid 事件。
支付对象有以下对象:
{
"id": "po_1H50scIkcSPJwVI7bFSQmBnV",
"object": "payout",
"amount": 1100,
"arrival_date": 1594782118,
"automatic": true,
"balance_transaction": "txn_1H2z37IkcSPJwVI7rVwkvfCT",
"created": 1594782118,
"currency": "usd",
"description": "STRIPE PAYOUT",
"destination": "ba_1H50scIkcSPJwVI7MshqFr6u",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"livemode": false,
"metadata": {},
"method": "standard",
"source_type": "card",
"statement_descriptor": null,
"status": "in_transit",
"type": "bank_account"
}
参考:https://stripe.com/docs/api/payouts/object
我能够在我的 webhook 中获取此事件,但我有兴趣让交易“参与”到此付款中。
假设付款是 100 美元,我有两种产品,每种产品分别是 2 美元和 5 美元,我需要确定每个价格有多少交易。
无法在文档中找到它,但在 UI 中,我们可以通过交易部分标题旁边的“导出”按钮从支付屏幕转到个人支付来做到这一点:
【问题讨论】:
标签: stripe-payments