# Stripe webhook data not updating and canceling plan

**URL:** <https://forum.bubble.io/t/stripe-webhook-data-not-updating-and-canceling-plan/330235>\
**Category:** APIs\
**Created:** [July 9, 2024, 10:26am UTC](https://forum.bubble.io/t/stripe-webhook-data-not-updating-and-canceling-plan/330235 "2024-07-09T10:26:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackncurious](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jackncurious](https://forum.bubble.io/u/jackncurious)\
**Post date:** [July 9, 2024, 10:26am UTC](https://forum.bubble.io/t/stripe-webhook-data-not-updating-and-canceling-plan/330235/1 "2024-07-09T10:26:37Z")

</div>

Hi I created a stripe subscription with a webhook ; but the webhook do not change the suscription status in the data-base ; i’ve watch countless videos step by step but stillnot working . Help me please !

 ![subcancel](https://us1.discourse-cdn.com/bubble/original/3X/6/7/677824add9beca24346082f3738592817aca5314.png)

 ![Capture webhook](https://us1.discourse-cdn.com/bubble/original/3X/9/0/90f02fa0a53d379042c4f2286363b4cdbf7bbbc1.png)

![Capturesraud](https://us1.discourse-cdn.com/bubble/original/3X/5/5/55a5be2380bccf513b887c054e189cec24eef941.png)

---

<div class="post-metadata">

**Author:** ![thisRehan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thisrehan/32/222362_2.png) [@thisRehan](https://forum.bubble.io/u/thisRehan)\
**Post date:** [July 9, 2024, 10:40am UTC](https://forum.bubble.io/t/stripe-webhook-data-not-updating-and-canceling-plan/330235/2 "2024-07-09T10:40:36Z")

</div>

Hi @jackncurious,  
Are the other fields changing except for the status?

1. If not, need to check the constraint while searching for the user.
2. If yes, try using arbitrary text for changing the status instead of a dynamic value.

And do test it by deleting the subscription entry from stripe, ather than just cancelling the subscription.

---

<div class="post-metadata">

**Author:** ![jackncurious](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jackncurious](https://forum.bubble.io/u/jackncurious)\
**Post date:** [July 9, 2024, 11:41am UTC](https://forum.bubble.io/t/stripe-webhook-data-not-updating-and-canceling-plan/330235/3 "2024-07-09T11:41:50Z")

</div>

Hi thanks for your response ! No ; all the stripes datas only change when I suscbribe test to a plan without a webhook . Here is my search for user

 ![888778.](https://us1.discourse-cdn.com/bubble/original/3X/8/f/8f40ef33c7d4a61b37a56f74e5e9eb45573654cb.png)

---

<div class="post-metadata">

**Author:** ![thisRehan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thisrehan/32/222362_2.png) [@thisRehan](https://forum.bubble.io/u/thisRehan)\
**Post date:** [July 9, 2024, 11:47am UTC](https://forum.bubble.io/t/stripe-webhook-data-not-updating-and-canceling-plan/330235/4 "2024-07-09T11:47:03Z")

</div>

Ok, so you need to debug what actual data is coming in ‘Request Data’s object customer’ and what thing you are storing in ‘customer-ID’ after subscribing to the plan. These 2 things should be same.

---

<div class="post-metadata">

**Author:** ![jackncurious](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jackncurious](https://forum.bubble.io/u/jackncurious)\
**Post date:** [July 9, 2024, 12:30pm UTC](https://forum.bubble.io/t/stripe-webhook-data-not-updating-and-canceling-plan/330235/5 "2024-07-09T12:30:30Z")

</div>

Yes I did that , it’s exactly the same

 ![customer id](https://us1.discourse-cdn.com/bubble/original/3X/f/b/fb80f44de4643134563efb30dd805c602005d39e.png)

![image](https://us1.discourse-cdn.com/bubble/original/3X/1/c/1cca1ca42b35ffe7f6686ad0d7c947db5343eb1a.png)

I’m storing stripe customer id data

---

<div class="post-metadata">

**Author:** ![thisRehan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thisrehan/32/222362_2.png) [@thisRehan](https://forum.bubble.io/u/thisRehan)\
**Post date:** [July 9, 2024, 12:58pm UTC](https://forum.bubble.io/t/stripe-webhook-data-not-updating-and-canceling-plan/330235/6 "2024-07-09T12:58:43Z")

</div>

It seems to be perfect.  
Let’s do one more thing.  
If you have applied privacy rules on user, make sure to allow to be visible in searches publically.  
And if still issue exists, try to change something in user via arbitrary text. like status = arbitrary text(in-active)

---

<div class="post-metadata">

**Author:** ![jackncurious](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jackncurious](https://forum.bubble.io/u/jackncurious)\
**Post date:** [July 9, 2024, 2:03pm UTC](https://forum.bubble.io/t/stripe-webhook-data-not-updating-and-canceling-plan/330235/7 "2024-07-09T14:03:43Z")

</div>

Sorry I do not know how to use arbitrary text ; I also updated the stripe api and still not working .

I checked the box" ignore privacy rules " of the API and it worked, thank you very much for your help and your time .

---

<div class="post-metadata">

**Author:** ![thisRehan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thisrehan/32/222362_2.png) [@thisRehan](https://forum.bubble.io/u/thisRehan)\
**Post date:** [July 9, 2024, 2:50pm UTC](https://forum.bubble.io/t/stripe-webhook-data-not-updating-and-canceling-plan/330235/8 "2024-07-09T14:50:10Z")

</div>

Yes, it’s because privacy rules are applied to your user table, and you didn’t allow viewing users in searches as I mentioned in my previous comment. Therefore, when you search for the user, the privacy rules prevent it from fetching the user.

You’re most welcome! I’m glad I could help you solve your issue. Thanks!
