# Toggle change pricing (month or yearly)

**URL:** <https://community.weweb.io/t/toggle-change-pricing-month-or-yearly/7744>\
**Category:** Ask us anything\
**Tags:** binding, design\
**Created:** [March 25, 2024, 5:01pm UTC](https://community.weweb.io/t/toggle-change-pricing-month-or-yearly/7744 "2024-03-25T17:01:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafa\_flama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/rafa_flama/32/8049_2.png) [@rafa\_flama](https://community.weweb.io/u/rafa_flama)\
**Post date:** [March 25, 2024, 5:01pm UTC](https://community.weweb.io/t/toggle-change-pricing-month-or-yearly/7744/1 "2024-03-25T17:01:41Z")

</div>

Hello,  
I am trying to set up subscriptions with stripe following this video: [https://www.youtube.com/watch?v=Gbxnc\_HSXYI](https://www.youtube.com/watch?v=Gbxnc_HSXYI)

Around minute 4:20 it explains how toggle can change the monthly/yearly subscription.

I have followed the steps, however I’m not getting the expected results. I would really appreacite hand here 🙂

This is my variable set up:

 ![Screenshot 2024-03-25 at 17.58.15](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a55d7f6c0f18ce4df01e37bbed4c3e4ddeedf820.png)

This is how I bind to the toggle:

 ![Screenshot 2024-03-25 at 17.58.29](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/58084bb4b8a73ca6a94e4709e50f8cfb2e08cf58.png)

And finally this is the formula to show different prices depending on the toggle:

 ![Screenshot 2024-03-25 at 17.58.08](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/77b838da85e966a7980752e45a0bdd3b765126a6.jpeg)

Thanks in advance!!

---

<div class="post-metadata">

**Author:** ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)\
**Post date:** [March 26, 2024, 3:44am UTC](https://community.weweb.io/t/toggle-change-pricing-month-or-yearly/7744/2 "2024-03-26T03:44:46Z")

</div>

your if is broken, should look like this,  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/0/08d30b6a957be34f4b1912c4e839c302edd02998.png)

not  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1601b23bc01e0b40396663312b1c6d82bde2d401.png)

there is just a space between the if and the backet when you typed it in so it didn’t transform into a weweb formula

---

<div class="post-metadata">

**Author:** ![rafa\_flama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/rafa_flama/32/8049_2.png) [@rafa\_flama](https://community.weweb.io/u/rafa_flama)\
**Post date:** [March 26, 2024, 7:55am UTC](https://community.weweb.io/t/toggle-change-pricing-month-or-yearly/7744/3 "2024-03-26T07:55:48Z")

</div>

Thanks @sam1 !
