{"title":"Payment response merchantSig - SHA 256","category":"default","creationDate":1776961627,"content":"<div class=\"sc-notice warning\"><div>\n<p><strong>Hosted Payment Pages are no longer available<\/strong><\/p>\n<p>To accept payments through an Adyen-hosted page, use our <a href=\"\/pt\/online-payments\/build-your-integration\/sessions-flow?platform=Web&amp;integration=Hosted%2BCheckout\">Hosted Checkout<\/a>.<\/p>\n<p>This page is for the classic Hosted Payment Pages (HPP) integration, which has reached end-of-life.  We are no longer processing transactions though HPP.<\/p>\n<\/div><\/div>\n<p>To verify that the values, which you have received in the result URL, are valid and have not been tampered in the process, refer to this example.<\/p>\n<p>Example:<\/p>\n<pre><code>https:\/\/test.adyen.com\/hpp\/result.shtml?&amp;authResult=AUTHORISED&amp;merchantReference=SKINTEST-test&amp;merchantReturnData=YourMerchantReturnData&amp;merchantSig=ctYgiLlrjyG5OxoXmy8nn5n%2BYToDmw%2BR%2BqrC%2FhQxzE8%3&amp;paymentMethod=ideal&amp;pspReference=7914447419663319&amp;reason=3542&amp;shopperLocale=nl_NL&amp;skinCode=314lwMhy<\/code><\/pre>\n<p>If you extract the parameters, you have:<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>Key<\/strong><\/th>\n<th><strong>Value<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>authResult<\/code><\/td>\n<td>AUTHORISED<\/td>\n<\/tr>\n<tr>\n<td><code>merchantReference<\/code><\/td>\n<td>SKINTEST-test<\/td>\n<\/tr>\n<tr>\n<td><code>merchantReturnData<\/code><\/td>\n<td>YourMerchantReturnData<\/td>\n<\/tr>\n<tr>\n<td><code>paymentMethod<\/code><\/td>\n<td>ideal<\/td>\n<\/tr>\n<tr>\n<td><code>pspReference<\/code><\/td>\n<td>7914447419663319<\/td>\n<\/tr>\n<tr>\n<td><code>reason<\/code><\/td>\n<td>3542<\/td>\n<\/tr>\n<tr>\n<td><code>shopperLocale<\/code><\/td>\n<td>nl_NL<\/td>\n<\/tr>\n<tr>\n<td><code>skinCode<\/code><\/td>\n<td>314lwMhy<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Concatenate the keys and values as:<\/p>\n<pre><code>authResult:merchantReference:merchantReturnData:paymentMethod:pspReference:reason:shopperLocale:skinCode:AUTHORISED:SKINTEST-test:YourMerchantReturnData:ideal:7914447419663319:3542:nl_NL:314lwMhy<\/code><\/pre>\n<p>This string contains values for you to calculate\u00a0<code>merchantSig<\/code>\u00a0with\u00a0HMAC SHA-256 key.<\/p>\n<div class=\"sc-notice note\"><div>\n<p>If some parameters are missing in the URL, they should be also omitted in the concatenated string. For example, if the <code>merchantReturnData<\/code> and <code>reason<\/code> fields are not provided, the string above should look as follows:<\/p>\n<p>authResult:merchantReference:paymentMethod:pspReference:shopperLocale:skinCode:AUTHORISED:SKINTEST-test:ideal:7914447419663319:nl_NL:314lwMhy <\/div><\/div><\/p>","url":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/hosted-payment-pages\/hpp-payment-response\/payment-response-merchantsig-sha-256","articleFields":{"id":"24217207","type":"page","_expandable":{"operations":""},"status":"current","sitemap":{"priority":0.3},"parameters":{"anchor_new":"<a href=\"\/online-payments\">Online payments<\/a>","parent_page":"classic Hosted Payment Pages (HPP)"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/hosted-payment-pages\/hpp-payment-response\/payment-response-merchantsig-sha-256","title":"Payment response merchantSig - SHA 256","content":"\nHosted Payment Pages are no longer available\nTo accept payments through an Adyen-hosted page, use our Hosted Checkout.\nThis page is for the classic Hosted Payment Pages (HPP) integration, which has reached end-of-life.  We are no longer processing transactions though HPP.\n\nTo verify that the values, which you have received in the result URL, are valid and have not been tampered in the process, refer to this example.\nExample:\nhttps:\/\/test.adyen.com\/hpp\/result.shtml?&amp;authResult=AUTHORISED&amp;merchantReference=SKINTEST-test&amp;merchantReturnData=YourMerchantReturnData&amp;merchantSig=ctYgiLlrjyG5OxoXmy8nn5n%2BYToDmw%2BR%2BqrC%2FhQxzE8%3&amp;paymentMethod=ideal&amp;pspReference=7914447419663319&amp;reason=3542&amp;shopperLocale=nl_NL&amp;skinCode=314lwMhy\nIf you extract the parameters, you have:\n\n\n\nKey\nValue\n\n\n\n\nauthResult\nAUTHORISED\n\n\nmerchantReference\nSKINTEST-test\n\n\nmerchantReturnData\nYourMerchantReturnData\n\n\npaymentMethod\nideal\n\n\npspReference\n7914447419663319\n\n\nreason\n3542\n\n\nshopperLocale\nnl_NL\n\n\nskinCode\n314lwMhy\n\n\n\nConcatenate the keys and values as:\nauthResult:merchantReference:merchantReturnData:paymentMethod:pspReference:reason:shopperLocale:skinCode:AUTHORISED:SKINTEST-test:YourMerchantReturnData:ideal:7914447419663319:3542:nl_NL:314lwMhy\nThis string contains values for you to calculate\u00a0merchantSig\u00a0with\u00a0HMAC SHA-256 key.\n\nIf some parameters are missing in the URL, they should be also omitted in the concatenated string. For example, if the merchantReturnData and reason fields are not provided, the string above should look as follows:\nauthResult:merchantReference:paymentMethod:pspReference:shopperLocale:skinCode:AUTHORISED:SKINTEST-test:ideal:7914447419663319:nl_NL:314lwMhy ","type":"page","locale":"pt","boost":15,"hierarchy":{"lvl0":"Home","lvl1":"Online payments","lvl2":"Classic integrations for Ecommerce","lvl3":"Hosted Payment Pages","lvl4":"Payment response for Hosted Payment Pages","lvl5":"Payment response merchantSig - SHA 256"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/online-payments","lvl2":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations","lvl3":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/hosted-payment-pages","lvl4":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/hosted-payment-pages\/hpp-payment-response","lvl5":"\/pt\/online-payments\/classic-integrations\/hosted-payment-pages\/hpp-payment-response\/payment-response-merchantsig-sha-256"},"levels":6,"category":"Online Payments","category_color":"green","tags":["Payment","response","merchantSig"]}}
