有a ton of different stripe webhook event types,但我似乎找不到想要的那个。
在列表中,这三个似乎最适用:
charge.succeeded: Occurs whenever a new charge is created and is successful.
invoice.payment_succeeded: Occurs whenever an invoice payment attempt succeeds.
order.payment_succeeded: Occurs whenever an order payment attempt succeeds.
transfer.paid: Occurs after a transfer is paid. For Instant Payouts, the event will be sent on the next business day, although the funds should be received well beforehand.
但是我不确定这两者之间是否存在任何重叠,并且很难相信没有一个包含所有的“随便付费”的Webhook事件。
我是否必须为所有这些创建网络钩子?还是已经有一个webhook事件了?
答案 0 :(得分:0)
charge.succeeded
将在您的一位客户成功收取费用后触发。其他的则是针对更特定类型的情况,但通常情况下,将为成功付款而触发。