Skip to content

Commit

Permalink
feat: update pricing
Browse files Browse the repository at this point in the history
  • Loading branch information
vas3k committed Dec 25, 2024
1 parent 6aa664f commit ee2daba
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 99 deletions.
6 changes: 3 additions & 3 deletions frontend/html/payments/blocks/packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<label for="package-year" class="block pay-package">
<div class="pay-package-name">На год</div>
<div class="pay-package-image">🤘</div>
<div class="pay-package-price">20 <small>+ VAT</small></div>
<div class="pay-package-price">25 <small>+ VAT</small></div>
</label>
</div>

Expand All @@ -13,7 +13,7 @@
<label for="package-three" class="block pay-package">
<div class="pay-package-name">На 3 года</div>
<div class="pay-package-image">😎</div>
<div class="pay-package-price">55 <small>+ VAT</small></div>
<div class="pay-package-price">70 <small>+ VAT</small></div>
</label>
</div>

Expand All @@ -22,7 +22,7 @@
<label for="package-hundred" class="block pay-package">
<div class="pay-package-name">На 50 лет</div>
<div class="pay-package-image">🚀</div>
<div class="pay-package-price">250 <small>+ VAT</small></div>
<div class="pay-package-price">350 <small>+ VAT</small></div>
</label>
</div>
</div>
Expand Down
120 changes: 24 additions & 96 deletions payments/products.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def club_invite_activator(product, payment, user):
PRODUCTS = {
"club1": {
"code": "club1",
"stripe_id": "price_1M5roXKgJMaF2rHtmNAMyAew" if not IS_TEST_STRIPE else "price_1H5cChKgJMaF2rHtugvlcjKR",
"stripe_id": "price_1QZtkpKgJMaF2rHtKAVKNJoB" if not IS_TEST_STRIPE else "price_1H5cChKgJMaF2rHtugvlcjKR",
"coinbase_id": "e69b2ee9-d363-42c1-9f5d-64366922121f",
"description": "Год членства в Клубе",
"amount": 20,
"amount": 25,
"recurrent": False,
"activator": club_subscription_activator,
"data": {
Expand All @@ -77,29 +77,29 @@ def club_invite_activator(product, payment, user):
},
"club1_recurrent_yearly": {
"code": "club1_recurrent_yearly",
"stripe_id": "price_1M5rx4KgJMaF2rHtR2i0Dfo8" if not IS_TEST_STRIPE else "price_1H74BCKgJMaF2rHtRhUtbn3C",
"stripe_id": "price_1QZtlFKgJMaF2rHtnQZEkqTD" if not IS_TEST_STRIPE else "price_1H74BCKgJMaF2rHtRhUtbn3C",
"coinbase_id": "e69b2ee9-d363-42c1-9f5d-64366922121f",
"description": "Год членства в Клубе (автопополнение каждый год)",
"amount": 20,
"amount": 25,
"recurrent": "yearly",
"activator": club_subscription_activator,
"data": {
"timedelta": timedelta(days=366),
},
},
"club1_recurrent_monthly": {
"code": "club1_recurrent_monthly",
"stripe_id": "price_1M5rxsKgJMaF2rHt29LkqAvv" if not IS_TEST_STRIPE else "price_1H74BCKgJMaF2rHtRhUtbn3C",
"legacy_club1_recurrent_yearly_02": {
"code": "club1_recurrent_yearly",
"stripe_id": "price_1M5rx4KgJMaF2rHtR2i0Dfo8",
"coinbase_id": "e69b2ee9-d363-42c1-9f5d-64366922121f",
"description": "Год членства в Клубе (автопополнение каждый месяц)",
"description": "Год членства в Клубе (автопополнение каждый год)",
"amount": 20,
"recurrent": "monthly",
"recurrent": "yearly",
"activator": club_subscription_activator,
"data": {
"timedelta": timedelta(days=365),
"timedelta": timedelta(days=366),
},
},
"legacy_club1_recurrent_yearly": {
"legacy_club1_recurrent_yearly_01": {
"code": "club1_recurrent_yearly",
"stripe_id": "price_1H73kbKgJMaF2rHtTS3clmtv",
"coinbase_id": "e69b2ee9-d363-42c1-9f5d-64366922121f",
Expand All @@ -111,21 +111,9 @@ def club_invite_activator(product, payment, user):
"timedelta": timedelta(days=366),
},
},
"legacy_club1_recurrent_monthly": {
"code": "club1_recurrent_monthly",
"stripe_id": "price_1H73luKgJMaF2rHteHuMsvBE",
"coinbase_id": "e69b2ee9-d363-42c1-9f5d-64366922121f",
"description": "Год членства в Клубе (автопродление, легаси)",
"amount": 20,
"recurrent": "monthly",
"activator": club_subscription_activator,
"data": {
"timedelta": timedelta(days=366),
},
},
"club3": {
"code": "club3",
"stripe_id": "price_1M5rvnKgJMaF2rHtRNAn6nR0" if not IS_TEST_STRIPE else "price_1H5cChKgJMaF2rHtugvlcjKR",
"stripe_id": "price_1QZtmZKgJMaF2rHtMfWJ5QFs" if not IS_TEST_STRIPE else "price_1H5cChKgJMaF2rHtugvlcjKR",
"coinbase_id": "84c507f9-0a21-471f-8d10-acf0a154db0d",
"description": "Членство в Клубе на 3 года",
"amount": 55,
Expand All @@ -137,58 +125,22 @@ def club_invite_activator(product, payment, user):
},
"club3_recurrent_yearly": {
"code": "club3_recurrent_yearly",
"stripe_id": "price_1M5rvEKgJMaF2rHtvnZ064m8" if not IS_TEST_STRIPE else "price_1H74BCKgJMaF2rHtRhUtbn3C",
"stripe_id": "price_1QZtmqKgJMaF2rHtjP9aT80d" if not IS_TEST_STRIPE else "price_1H74BCKgJMaF2rHtRhUtbn3C",
"coinbase_id": "84c507f9-0a21-471f-8d10-acf0a154db0d",
"description": "+3 года членства в Клубе (автопродление, легаси)",
"description": "+3 года членства в Клубе (автопродление)",
"amount": 55,
"recurrent": "yearly",
"activator": club_subscription_activator,
"data": {
"timedelta": timedelta(days=365 * 3),
},
},
"club3_recurrent_monthly": {
"code": "club3_recurrent_monthly",
"stripe_id": "price_1M5rtYKgJMaF2rHtrSMhNDpa" if not IS_TEST_STRIPE else "price_1H74BCKgJMaF2rHtRhUtbn3C",
"coinbase_id": "84c507f9-0a21-471f-8d10-acf0a154db0d",
"description": "+3 года членства в Клубе (автопродление, легаси)",
"amount": 55,
"recurrent": "monthly",
"activator": club_subscription_activator,
"data": {
"timedelta": timedelta(days=365 * 3),
},
},
"legacy_club3_recurrent_yearly": {
"code": "club3_recurrent_yearly",
"stripe_id": "price_1H73n7KgJMaF2rHtZtU9dvJT",
"coinbase_id": "84c507f9-0a21-471f-8d10-acf0a154db0d",
"description": "+3 года членства в Клубе (автопополнение каждый год)",
"amount": 45,
"recurrent": "yearly",
"activator": club_subscription_activator,
"data": {
"timedelta": timedelta(days=365 * 3),
},
},
"legacy_club3_recurrent_monthly": {
"code": "club3_recurrent_monthly",
"stripe_id": "price_1H73oXKgJMaF2rHtITGhACgO",
"coinbase_id": "84c507f9-0a21-471f-8d10-acf0a154db0d",
"description": "+3 года членства в Клубе (автопополнение каждый месяц)",
"amount": 45,
"recurrent": "monthly",
"activator": club_subscription_activator,
"data": {
"timedelta": timedelta(days=365 * 3),
},
},
"club50": {
"code": "club50",
"stripe_id": "price_1M5s0eKgJMaF2rHt9IGmubqR" if not IS_TEST_STRIPE else "price_1H5cChKgJMaF2rHtugvlcjKR",
"stripe_id": "price_1QZto2KgJMaF2rHtDJsQke42" if not IS_TEST_STRIPE else "price_1H5cChKgJMaF2rHtugvlcjKR",
"coinbase_id": "ff0df23f-06d8-473f-9ad8-74039a62aeb1",
"description": "Членство в Клубе на 50 лет",
"amount": 250,
"amount": 350,
"recurrent": False,
"activator": club_subscription_activator,
"data": {
Expand All @@ -197,7 +149,7 @@ def club_invite_activator(product, payment, user):
},
"club50_recurrent_yearly": {
"code": "club50_recurrent_yearly",
"stripe_id": "price_1OmKAFKgJMaF2rHtxoB6YQB6" if not IS_TEST_STRIPE else "price_1H74BCKgJMaF2rHtRhUtbn3C",
"stripe_id": "price_1QZu3WKgJMaF2rHt1jtw3mEb" if not IS_TEST_STRIPE else "price_1H74BCKgJMaF2rHtRhUtbn3C",
"coinbase_id": "ff0df23f-06d8-473f-9ad8-74039a62aeb1",
"description": "Членство в Клубе на 50 лет (автопополнение каждый год)",
"amount": 250,
Expand All @@ -207,52 +159,28 @@ def club_invite_activator(product, payment, user):
"timedelta": timedelta(days=365 * 50),
},
},
"club50_recurrent_monthly": {
"code": "club50_recurrent_monthly",
"stripe_id": "price_1M5rqsKgJMaF2rHtZFv5ddj9" if not IS_TEST_STRIPE else "price_1H74BCKgJMaF2rHtRhUtbn3C",
"coinbase_id": "ff0df23f-06d8-473f-9ad8-74039a62aeb1",
"description": "Членство в Клубе на 50 лет (автопополнение каждый месяц)",
"amount": 250,
"recurrent": "monthly",
"activator": club_subscription_activator,
"data": {
"timedelta": timedelta(days=365 * 50),
},
},
"legacy_club50_recurrent_yearly": {
"legacy_club50_recurrent_yearly_02": {
"code": "club50_recurrent_yearly",
"stripe_id": "price_1H73rBKgJMaF2rHtyaW1DGWM",
"stripe_id": "price_1OmKAFKgJMaF2rHtxoB6YQB6" if not IS_TEST_STRIPE else "price_1H74BCKgJMaF2rHtRhUtbn3C",
"coinbase_id": "ff0df23f-06d8-473f-9ad8-74039a62aeb1",
"description": "Членство в Клубе на 50 лет (автопополнение, легаси)",
"amount": 150,
"description": "Членство в Клубе на 50 лет (автопополнение каждый год)",
"amount": 250,
"recurrent": "yearly",
"activator": club_subscription_activator,
"data": {
"timedelta": timedelta(days=365 * 50),
},
},
"legacy_club50_recurrent_monthly": {
"code": "club50_recurrent_monthly",
"stripe_id": "price_1H73q7KgJMaF2rHtswNA3rha",
"coinbase_id": "ff0df23f-06d8-473f-9ad8-74039a62aeb1",
"description": "Членство в Клубе на 50 лет (автопополнение, легаси)",
"amount": 150,
"recurrent": "monthly",
"activator": club_subscription_activator,
"data": {
"timedelta": timedelta(days=365 * 50),
},
},
"club1_invite": {
"code": "club1_invite",
"stripe_id": "price_1M5rlQKgJMaF2rHtOx6OkWvf" if not IS_TEST_STRIPE else "price_1IX9QuKgJMaF2rHtJnrSs0Ud",
"stripe_id": "price_1QZtjxKgJMaF2rHt8e3VWP0V" if not IS_TEST_STRIPE else "price_1IX9QuKgJMaF2rHtJnrSs0Ud",
"coinbase_id": None,
"description": "Пригласить друга в Клуб",
"amount": 20,
"amount": 25,
"recurrent": False,
"activator": club_invite_activator,
"data": {
"timedelta": timedelta(days=365),
"timedelta": timedelta(days=366),
},
},
}
Expand Down

0 comments on commit ee2daba

Please sign in to comment.