From ee2daba5c29aaf5fe36a0af66d2702067b2596d6 Mon Sep 17 00:00:00 2001 From: Vasily Zubarev Date: Wed, 25 Dec 2024 14:08:13 +0100 Subject: [PATCH] feat: update pricing --- frontend/html/payments/blocks/packages.html | 6 +- payments/products.py | 120 ++++---------------- 2 files changed, 27 insertions(+), 99 deletions(-) diff --git a/frontend/html/payments/blocks/packages.html b/frontend/html/payments/blocks/packages.html index c364ab5c9..acea4297e 100644 --- a/frontend/html/payments/blocks/packages.html +++ b/frontend/html/payments/blocks/packages.html @@ -4,7 +4,7 @@ @@ -13,7 +13,7 @@ @@ -22,7 +22,7 @@ diff --git a/payments/products.py b/payments/products.py index 4e2f32b0f..750a73f95 100644 --- a/payments/products.py +++ b/payments/products.py @@ -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": { @@ -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", @@ -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, @@ -137,9 +125,9 @@ 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, @@ -147,48 +135,12 @@ def club_invite_activator(product, payment, user): "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": { @@ -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, @@ -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), }, }, }