diff --git a/scheduler/src/routes/stripe.py b/scheduler/src/routes/stripe.py index 11643bb..a130dd0 100644 --- a/scheduler/src/routes/stripe.py +++ b/scheduler/src/routes/stripe.py @@ -36,6 +36,7 @@ "product_wikipedia": "Wikipedia Hotspot English", "product_ted": "TED Hotspot", "product_preppers": "Preppers Hotspot", + "product_medical": "Medical Hotspot", "product_computer": "Computer Hotspot", "product_access_1m": "One month Imager Access", "product_access_1y": "Annual Imager Access", @@ -44,6 +45,7 @@ "product_wikipedia": "Wikipedia Hotspot auf Deutsch", "product_ted": "TED Hotspot", "product_preppers": "Preppers Hotspot", + "product_medical": "Medical Hotspot", "product_computer": "Computer Hotspot", "product_access_1m": "One month Imager Access", "product_access_1y": "Annual Imager Access", @@ -52,6 +54,7 @@ "product_wikipedia": "Wikipedia Hotspot en español", "product_ted": "TED Hotspot", "product_preppers": "Preppers Hotspot", + "product_medical": "Medical Hotspot", "product_computer": "Computer Hotspot", "product_access_1m": "One month Imager Access", "product_access_1y": "Annual Imager Access", @@ -60,6 +63,7 @@ "product_wikipedia": "Wikipedia Hotspot Français", "product_ted": "TED Hotspot", "product_preppers": "Preppers Hotspot", + "product_medical": "Medical Hotspot", "product_computer": "Computer Hotspot", "product_access_1m": "Accès Imager 1 mois", "product_access_1y": "Accès Imager annuel", @@ -274,6 +278,11 @@ def handle_access_order(session, customer): os.getenv("STRIPE_PRICE_PP"), handle_image_order, ), + "medical": ( + os.getenv("STRIPE_METHOD_MD"), + os.getenv("STRIPE_PRICE_MD"), + handle_image_order, + ), "ted": ( os.getenv("STRIPE_METHOD_TED"), os.getenv("STRIPE_PRICE_TED"), @@ -428,7 +437,7 @@ def success(): context = {"customer": customer, "session": session, "shop_url": SHOP_PUBLIC_URL} product = session.metadata.get("product") - if product.startswith("wikipedia-") or product in ("preppers", "computer", "ted"): + if product.startswith("wikipedia-") or product in ("preppers", "computer", "ted", "medical"): kind = "image" http_url, torrent_url, _ = get_links_for(product) context.update({"http_url": http_url, "torrent_url": torrent_url}) diff --git a/scheduler/src/templates/stripe/shop.html b/scheduler/src/templates/stripe/shop.html index 9357f10..d78059f 100644 --- a/scheduler/src/templates/stripe/shop.html +++ b/scheduler/src/templates/stripe/shop.html @@ -31,6 +31,7 @@ } .offer:last-child { border: 1px solid #bebebe !important; } + .offer:hover { background-color:rgba(0,0,0,.05) } .offer.splitter { @@ -309,6 +310,28 @@

Computer package

+
+
+

Medical package

+

Needed everywhere

+
+
$25
+
+
    +
  • Emergency and Military Medicine
  • +
  • Traveler's Health
  • +
  • Common drugs
  • +
  • General medicine, and more!
  • +
  • Requires a 64GB microSD card. See demo here.
  • +
+
+
+ + +
+
+
+

Preppers package