Skip to content

Commit

Permalink
feat: add async_payment_succeeded to billing event listener (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbh authored Dec 20, 2024
1 parent cf08061 commit e78d0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/event/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (p *Service) BillingWebhook(ctx context.Context, payload ProviderWebhookEve
go func() {
// don't block the webhook and process it in the background
switch evt.Type {
case "checkout.session.completed":
case "checkout.session.completed", "checkout.session.async_payment_succeeded":
// trigger checkout sync
deDupKey := fmt.Sprintf("checkout-%s-%d", providerID, currentExecutionUnit)
_, err, _ := p.sf.Do(deDupKey, func() (interface{}, error) {
Expand Down

0 comments on commit e78d0a6

Please sign in to comment.