{"id":21381,"date":"2026-05-27T14:53:54","date_gmt":"2026-05-27T12:53:54","guid":{"rendered":"https:\/\/www.drugshortage.ch\/?page_id=21381"},"modified":"2026-06-19T22:02:37","modified_gmt":"2026-06-19T20:02:37","slug":"abo-confirmation","status":"publish","type":"page","link":"https:\/\/www.drugshortage.ch\/index.php\/abo-confirmation\/","title":{"rendered":"Abonnements Confirmation"},"content":{"rendered":"\n<!-- ============================================================\n     Slug: abo-confirmation\n     Version fran\u00e7aise de la page de confirmation (Magic Link)\n     ============================================================ -->\n<style>\n  #conf-fr-outer { width:100%; max-width:600px; margin:0 auto; box-sizing:border-box; font-family:'Segoe UI',Arial,sans-serif; font-size:14px; color:#2d3748; }\n  .conf-fr-card { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:28px; box-shadow:0 2px 8px rgba(0,0,0,.07); text-align:center; }\n  .conf-fr-spinner { width:48px; height:48px; border:4px solid #e2e8f0; border-top-color:#e53e3e; border-radius:50%; animation:cfspin .8s linear infinite; margin:0 auto 20px; }\n  @keyframes cfspin { to { transform:rotate(360deg); } }\n  .conf-fr-icon { font-size:48px; margin-bottom:16px; }\n  .conf-fr-title { font-size:20px; font-weight:700; color:#2d3748; margin-bottom:10px; }\n  .conf-fr-text { font-size:14px; color:#718096; margin-bottom:20px; line-height:1.6; }\n  .conf-fr-btn { display:inline-block; padding:12px 24px; background:#e53e3e; color:#fff; border:none; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; }\n  .conf-fr-btn-sec { display:inline-block; padding:12px 24px; background:#fff; color:#718096; border:1px solid #e2e8f0; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; margin-left:8px; }\n  .conf-fr-lang { text-align:right; margin-bottom:12px; font-size:12px; color:#718096; }\n  .conf-fr-lang a { color:#e53e3e; text-decoration:none; font-weight:600; }\n<\/style>\n\n<div id=\"conf-fr-outer\">\n  <div class=\"conf-fr-lang\">\n    <a href=\"https:\/\/www.drugshortage.ch\/index.php\/abo-bestaetigung\/\">&#x1f1e9;&#x1f1ea; Deutsch<\/a>\n  <\/div>\n  <div class=\"conf-fr-card\" id=\"conf-fr-loading\">\n    <div class=\"conf-fr-spinner\"><\/div>\n    <div class=\"conf-fr-title\">V\u00e9rification en cours\u2026<\/div>\n    <div class=\"conf-fr-text\">Veuillez patienter.<\/div>\n  <\/div>\n  <div class=\"conf-fr-card\" id=\"conf-fr-success\" style=\"display:none;\">\n    <div class=\"conf-fr-icon\">&#x2705;<\/div>\n    <div class=\"conf-fr-title\">Connexion r\u00e9ussie !<\/div>\n    <div class=\"conf-fr-text\">Vous \u00eates maintenant connect\u00e9(e). Vous pouvez g\u00e9rer vos abonnements.<\/div>\n    <a href=\"https:\/\/www.drugshortage.ch\/index.php\/abo-gestion\/\" class=\"conf-fr-btn\">G\u00e9rer mes abonnements \u2192<\/a>\n  <\/div>\n  <div class=\"conf-fr-card\" id=\"conf-fr-error\" style=\"display:none;\">\n    <div class=\"conf-fr-icon\">&#x26a0;&#xfe0f;<\/div>\n    <div class=\"conf-fr-title\">Lien expir\u00e9 ou d\u00e9j\u00e0 utilis\u00e9<\/div>\n    <div class=\"conf-fr-text\">Ce lien de connexion n&#8217;est plus valide. Veuillez en demander un nouveau.<\/div>\n    <a href=\"https:\/\/www.drugshortage.ch\/index.php\/abo-inscription\/\" class=\"conf-fr-btn\">Nouvelle inscription<\/a>\n    <a href=\"https:\/\/www.drugshortage.ch\/index.php\/abo-inscription\/\" class=\"conf-fr-btn-sec\" style=\"background:#fff;color:#718096;\">Demander un nouveau lien<\/a>\n  <\/div>\n<\/div>\n\n<script>\nconst CONF_FR_BASE = \"https:\/\/www.drugshortage.ch\";\nconst CONF_FR_API  = CONF_FR_BASE + \"\/api\/api_abo_registrierung.php\";\n\ndocument.addEventListener('DOMContentLoaded', async function() {\n  var params = new URLSearchParams(window.location.search);\n  var token  = params.get('token') || '';\n\n  \/\/ Erfolgreich zur\u00fcckgekehrt von Stripe?\n  var upgrade = params.get('upgrade');\n  if (upgrade === 'success') {\n    localStorage.setItem('abo_upgrade_success', '1');\n    window.location.href = CONF_FR_BASE + '\/index.php\/abo-gestion\/';\n    return;\n  }\n\n  if (!token) {\n    document.getElementById('conf-fr-loading').style.display = 'none';\n    document.getElementById('conf-fr-error').style.display   = 'block';\n    return;\n  }\n\n  try {\n    var res = await fetch(CONF_FR_API + \"?action=bestaetigen\" + String.fromCharCode(38) + \"token=\" + encodeURIComponent(token));\n    var d   = await res.json();\n\n    document.getElementById('conf-fr-loading').style.display = 'none';\n\n    if (d.ok) {\n      localStorage.setItem('abo_token', d.token);\n      localStorage.setItem('abo_email', d.email);\n      document.getElementById('conf-fr-success').style.display = 'block';\n      setTimeout(function() {\n        window.location.href = CONF_FR_BASE + '\/index.php\/abo-gestion\/';\n      }, 2000);\n    } else {\n      document.getElementById('conf-fr-error').style.display = 'block';\n    }\n  } catch(err) {\n    document.getElementById('conf-fr-loading').style.display = 'none';\n    document.getElementById('conf-fr-error').style.display   = 'block';\n  }\n});\n<\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f1e9;&#x1f1ea; Deutsch V\u00e9rification en cours\u2026 Veuillez patienter. &#x2705; Connexion r\u00e9ussie ! Vous \u00eates maintenant connect\u00e9(e). Vous pouvez g\u00e9rer vos abonnements. G\u00e9rer mes abonnements \u2192 &#x26a0;&#xfe0f; Lien expir\u00e9 ou d\u00e9j\u00e0 utilis\u00e9 Ce lien de connexion n&#8217;est plus valide. Veuillez en demander un nouveau. Nouvelle inscription Demander un nouveau lien<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":"","_members_access_role":[],"_members_access_error":""},"class_list":["post-21381","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.drugshortage.ch\/index.php\/wp-json\/wp\/v2\/pages\/21381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.drugshortage.ch\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.drugshortage.ch\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.drugshortage.ch\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.drugshortage.ch\/index.php\/wp-json\/wp\/v2\/comments?post=21381"}],"version-history":[{"count":2,"href":"https:\/\/www.drugshortage.ch\/index.php\/wp-json\/wp\/v2\/pages\/21381\/revisions"}],"predecessor-version":[{"id":21844,"href":"https:\/\/www.drugshortage.ch\/index.php\/wp-json\/wp\/v2\/pages\/21381\/revisions\/21844"}],"wp:attachment":[{"href":"https:\/\/www.drugshortage.ch\/index.php\/wp-json\/wp\/v2\/media?parent=21381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}