Stripe plugin triggers multiple create customer events in Stripe

I have 2 different buttons to subscription.upgrade in my app. After user is registered customer is created in stripe according to createCustomerOnSignUp: true, in plugin config. But when I navigate to one of my 'Subscribe' buttons and click on it -> subscription.upgrade just creates new user in stripe instead of triggering checkout session:
2025-04-20 14:38:59 --> customer.created [evt_1RG3hf4FS9Rcg327BHPwlIez]
2025-04-20 14:38:59 <-- [200] POST http://localhost:3000/api/auth/stripe/webhook [evt_1RG3hf4FS9Rcg327BHPwlIez]
2025-04-20 14:39:30 --> customer.created [evt_1RG3iA4FS9Rcg3277wHm3FS7]
2025-04-20 14:39:30 <-- [200] POST http://localhost:3000/api/auth/stripe/webhook [evt_1RG3iA4FS9Rcg3277wHm3FS7]
2025-04-20 14:39:58 --> customer.created [evt_1RG3ic4FS9Rcg327i3WXWvDt]
2025-04-20 14:39:58 <-- [200] POST http://localhost:3000/api/auth/stripe/webhook [evt_1RG3ic4FS9Rcg327i3WXWvDt]
2025-04-20 14:40:09 --> customer.created [evt_1RG3in4FS9Rcg327ktiFZ3YX]
2025-04-20 14:40:09 <-- [200] POST http://localhost:3000/api/auth/stripe/webhook [evt_1RG3in4FS9Rcg327ktiFZ3YX]
2025-04-20 14:38:59 --> customer.created [evt_1RG3hf4FS9Rcg327BHPwlIez]
2025-04-20 14:38:59 <-- [200] POST http://localhost:3000/api/auth/stripe/webhook [evt_1RG3hf4FS9Rcg327BHPwlIez]
2025-04-20 14:39:30 --> customer.created [evt_1RG3iA4FS9Rcg3277wHm3FS7]
2025-04-20 14:39:30 <-- [200] POST http://localhost:3000/api/auth/stripe/webhook [evt_1RG3iA4FS9Rcg3277wHm3FS7]
2025-04-20 14:39:58 --> customer.created [evt_1RG3ic4FS9Rcg327i3WXWvDt]
2025-04-20 14:39:58 <-- [200] POST http://localhost:3000/api/auth/stripe/webhook [evt_1RG3ic4FS9Rcg327i3WXWvDt]
2025-04-20 14:40:09 --> customer.created [evt_1RG3in4FS9Rcg327ktiFZ3YX]
2025-04-20 14:40:09 <-- [200] POST http://localhost:3000/api/auth/stripe/webhook [evt_1RG3in4FS9Rcg327ktiFZ3YX]
CustomerId also assigned properly to user initially after signup. Does anyone know why this happens and how to fix it ?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?