在Stripe CLI 1.13.0版本中,我正在运行$ stripe trigger checkout.session.completed
但我从来没有得到事件类型"checkout.session.completed",也就是节点中的req.event.type === 'checkout.session.completed'
。
相反,Stripe发送事件:
'product.created'
'price.created'
'payment_intent.created'
'customer.created'
'payment_intent.requires_action'
Stripe从不发送'checkout.session.completed'
。
类似地stripe trigger charge.succeeded
只发送事件charge.failed
我在测试模式下转到付款选项卡,在那里找到了答案。付款因未使用3DS进行验证而被阻止。我降低了欺诈规则中的3DS设置,并禁用了Block if !:has_liability_shift:
的阻止规则。