{"id":1215,"date":"2024-12-11T03:05:11","date_gmt":"2024-12-11T03:05:11","guid":{"rendered":"https:\/\/support-landing.altegio.cloud\/support\/6756242694429-transferring-user-data-when-connecting-the-integration\/"},"modified":"2026-02-03T10:16:52","modified_gmt":"2026-02-03T10:16:52","password":"","slug":"6756242694429-transferring-user-data-when-connecting-the-integration","status":"publish","type":"docs","link":"https:\/\/alteg.io\/en\/support\/knowledge-base\/6756242694429-transferring-user-data-when-connecting-the-integration\/","title":{"rendered":"Transferring user data when connecting the integration"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><span>What does it give<\/span><\/h2>\n\n\n\n<p><span>This setting allows the developer to obtain the user&#8217;s personal data, thereby simplifying the registration process and, accordingly, increasing the overall conversion to connect the application.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span>How to turn it on<\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><span>In the Personal Account, in the application editing mode, go to <\/span><strong><span>\u201cSettings for development\u201d<\/span><\/strong><span>. <\/span><\/li>\n\n\n\n<li><span>Mark the checkbox <\/span><strong><span>\u201cTransmit user data when connecting the integration\u201d<\/span><\/strong><span>. <\/span><\/li>\n\n\n\n<li>A<span>s long as the checkbox is not checked, data will not be transmitted by default.<\/span><\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d9c221e4244&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d9c221e4244\" class=\"wp-block-image wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/alteg.io\/support\/wp-content\/uploads\/2024\/12\/7385361913757.jpg\" alt=\"____.jpg\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span>How data is transferred<\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><span>When you click on the <\/span><strong><span>\u201cConnect\u201d <\/span><\/strong><span>button in the Marketplace, you follow the link <\/span><strong><span>\u201cRegistration Redirect Url\u201d <\/span><\/strong><span>specified in the Partner&#8217;s Personal Account. <\/span><\/li>\n\n\n\n<li><span>The <\/span><code>user_data<\/code><span> and <\/span><code>user_data_sign<\/code> <span>parameters are applied to this link by the <strong>GET-parameter<\/strong>, in addition to the already existing parameter <\/span><code>salon_id<\/code><span>.<\/span><\/li>\n\n\n\n<li>When the setting is disabled, the integration connection occurs according to the usual flow.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span>How data is generated<\/span><\/h2>\n\n\n\n<p><code>user_data<\/code> <span>is <\/span><strong><span>JSON <\/span><\/strong><span>encoded with the <\/span><em><strong><span>base64 <\/span><\/strong><\/em><span>algorithm<\/span><em><span>.<\/span><\/em><\/p>\n\n\n\n<p><code>user_data_sign<\/code><span>is a signature that we highly recommend checking to avoid unwanted registrations from third parties. <\/span><strong><span><strong>It is generated by <\/strong>SHA-256 <\/span><\/strong><span>encryption of the decoded <\/span><strong><span>JSON <\/span><\/strong><span>(<\/span><code>user_data<\/code><span>) with your partner key (it is located in <\/span><strong><span>the \u201cAccount Settings\u201d <\/span><\/strong><span>menu).<\/span><\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d9c221e4583&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d9c221e4583\" class=\"wp-block-image wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/alteg.io\/support\/wp-content\/uploads\/2024\/12\/7385543589661.png\" alt=\"mceclip0.png\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p class=\"wysiwyg-text-align-center\"><\/p>\n\n\n\n<p><span><strong>Below is an example of data decryption in PHP:<\/strong><\/span><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><span>&lt;?php<\/span><span>\nconst PARTNER_TOKEN = &#8216;2t6u73mrh85btb8wgyfj&#8217;;<\/span><span>\n$userData = $_GET[&#8216;user_data&#8217;];<\/span><span>\n\/\/ String eyJ1c2VyX2lkIjoxMjMsIm5hbWUiOiLQkNC90LTRgNC10Lkg0JjQstCw0L3QvtCyIiwiZW1haWwiOiJhbmRyZXlAZXhhbXBsZS5jb20iLCJwaG9uZSI6Ijc5OTkwMDA5OTAwIn0=<\/span><span>\n\/\/ Stage 1 &#8211; decode base64<\/span><span>\n$userData = base64_decode($userData);<\/span><span>\nvar_dump($userData);<\/span><span>\n\/**<\/span><span>\n * After decoding, we get an array with information about the user<\/span><span>\n *array(4) {<\/span><span>\n * [&#8220;user_id&#8221;] =&gt; int(123)<\/span><span>\n * [&#8220;name&#8221;] =&gt; string(25) &#8220;Alex Smith&#8221;<\/span><span>\n * [&#8220;email&#8221;] =&gt; string(18) &#8220;alexsmith@example.com&#8221;<\/span><span>\n * [&#8220;phone&#8221;] =&gt; string(11) &#8220;19990009900&#8221;<\/span><span>\n *}<\/span><span>\n *\/<\/span><span>\n\/\/ Stage 2 &#8211; check the validity of the signature<\/span><span>\n$isSignValid = $_GET[&#8216;user_data_sign&#8217;] === hash_hmac(&#8216;sha256&#8217;, $userData, PARTNER_TOKEN);<\/span><span>\nif (!$isSignValid) {<\/span><span>\n    die(&#8220;Invalid sign!&#8221;);<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>What does it give This setting allows the developer to obtain the user&#8217;s personal data, thereby simplifying the registration process and, accordingly, increasing the overall conversion to connect the application. How to turn it on How data is transferred How data is generated user_data is JSON encoded with the base64 algorithm. user_data_signis a signature that&hellip; <a class=\"more-link\" href=\"https:\/\/alteg.io\/en\/support\/knowledge-base\/6756242694429-transferring-user-data-when-connecting-the-integration\/\">Continue reading <span class=\"screen-reader-text\">Transferring user data when connecting the integration<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[110],"doc_tag":[2071],"class_list":["post-1215","docs","type-docs","status-publish","hentry","doc_category-documentation","doc_tag-integrations-en","entry"],"aioseo_notices":[],"year_month":"2026-04","word_count":302,"total_views":"229","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"ivan.k","author_nicename":"altegio","author_url":"https:\/\/alteg.io\/en\/author\/altegio\/"},"doc_category_info":[{"term_name":"Documentation","term_url":"https:\/\/alteg.io\/en\/support\/knowledge-base\/categories\/documentation\/"}],"doc_tag_info":[{"term_name":"Integrations","term_url":"https:\/\/alteg.io\/en\/support\/knowledge-base\/docs-tag\/integrations-en\/"}],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/alteg.io\/en\/support\/wp-json\/wp\/v2\/docs\/1215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alteg.io\/en\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/alteg.io\/en\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/alteg.io\/en\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alteg.io\/en\/support\/wp-json\/wp\/v2\/comments?post=1215"}],"version-history":[{"count":4,"href":"https:\/\/alteg.io\/en\/support\/wp-json\/wp\/v2\/docs\/1215\/revisions"}],"predecessor-version":[{"id":268465,"href":"https:\/\/alteg.io\/en\/support\/wp-json\/wp\/v2\/docs\/1215\/revisions\/268465"}],"wp:attachment":[{"href":"https:\/\/alteg.io\/en\/support\/wp-json\/wp\/v2\/media?parent=1215"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/alteg.io\/en\/support\/wp-json\/wp\/v2\/doc_category?post=1215"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/alteg.io\/en\/support\/wp-json\/wp\/v2\/doc_tag?post=1215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}