# Stripe payment resets variable?

**URL:** <https://community.weweb.io/t/stripe-payment-resets-variable/5387>\
**Category:** Ask us anything\
**Created:** [November 14, 2023, 10:46am UTC](https://community.weweb.io/t/stripe-payment-resets-variable/5387 "2023-11-14T10:46:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JacquesL](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@JacquesL](https://community.weweb.io/u/JacquesL)\
**Post date:** [November 14, 2023, 10:46am UTC](https://community.weweb.io/t/stripe-payment-resets-variable/5387/1 "2023-11-14T10:46:23Z")

</div>

Hi !

I noticed that the stripe plugin resets all my variables whenever a payment is complete which is kind of problematic for me. Is there anyway I can use it without having my variables reset ?

Thanks !

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [November 14, 2023, 3:48pm UTC](https://community.weweb.io/t/stripe-payment-resets-variable/5387/2 "2023-11-14T15:48:52Z")

</div>

Which variables are reseted ? What’s your flow ? Do you mean after a redirection between stripe and your web app ?

When you leave the application every variables are lost, you have to toggle local storage on the variable you want the state to be saved between multiple visit (after a refresh, a redirection, or leaving/opening again the app).

---

<div class="post-metadata">

**Author:** ![JacquesL](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@JacquesL](https://community.weweb.io/u/JacquesL)\
**Post date:** [November 25, 2023, 1:18pm UTC](https://community.weweb.io/t/stripe-payment-resets-variable/5387/3 "2023-11-25T13:18:28Z")

</div>

I’ve found solutions to my issues by not using the native stripe composant ! But thanks for the answer !!
