{"title":"Payment response for Hosted Payment Pages","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>After shoppers have completed the payment,\u00a0they are redirected to a result page\u00a0of your choice. You can set a custom result URL in the Customer Area on the skin configuration page. Another option is to include the result URL in the\u00a0<code>resURL<\/code>\u00a0field in the payment request.\u2028\u2028<\/p>\n<p>Adyen appends parameters to this result URL to inform you about the payment status. If the status is already determined (either authorised or refused), you can use this information to\u00a0display a payment successful or payment failed page. In a case when the current status is\u00a0<a href=\"\/pt\/online-payments\/payment-result-codes\">pending<\/a>, use\u00a0paymentNBSP<a href=\"\/pt\/development-resources\/webhooks\">webhooks<\/a>\u00a0to get the outcome of a payment request and store this result in your back office, if necessary.<\/p>\n<p>An example of a redirect URL to a result page:<\/p>\n<pre><code class=\"language-text\">http:\/\/yourSite.com\/pRes.jsp<\/code><\/pre>\n<p>You can also add your own custom parameters to the redirect URL:<\/p>\n<pre><code class=\"language-text\">http:\/\/yourSite.com\/pRes.jsp?order=ORDER_NUMBER<\/code><\/pre>\n<p>The next example shows a <code>resultURL<\/code> (corresponding to a redirect URL without custom parameters) with parameters appended by us to inform you of the payment status:<\/p>\n<pre><code class=\"language-text\">http:\/\/yourSite.com\/pRes.jsp?merchantReference=Internet%20order%2012345&amp;skinCode=4aD37dJA&amp;shopperLocale=en_GB&amp;authResult=AUTHORISED&amp;pspReference=1211992213193029&amp;merchantSig=CPb2cObMxmIIE0khO8WhEYyKDJs%3D\n\n&lt;!-- Appended URL parameters:\n* merchantReference = Internet order 12345\n* skinCode = 4aD37dJA\n* shopperLocale = en_GB\n* authResult = AUTHORISED\n* pspReference = 1211992213193029\n* merchantSig = CPb2cObMxmIIE0khO8WhEYyKDJs%3D\n --&gt;<\/code><\/pre>\n<p>To ensure that the response is not tampered with validate the response by calculating the signature of the returned fields, except the merchantSig field. Adyen uses your secret HMAC key to sign the data, so the calculated signature should be the same as the\u00a0<code>merchantSig<\/code>\u00a0included in the response.\u2028\u2028<\/p>","url":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/hosted-payment-pages\/hpp-payment-response","articleFields":{"id":"24217204","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","title":"Payment response for Hosted Payment Pages","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\nAfter shoppers have completed the payment,\u00a0they are redirected to a result page\u00a0of your choice. You can set a custom result URL in the Customer Area on the skin configuration page. Another option is to include the result URL in the\u00a0resURL\u00a0field in the payment request.\u2028\u2028\nAdyen appends parameters to this result URL to inform you about the payment status. If the status is already determined (either authorised or refused), you can use this information to\u00a0display a payment successful or payment failed page. In a case when the current status is\u00a0pending, use\u00a0paymentNBSPwebhooks\u00a0to get the outcome of a payment request and store this result in your back office, if necessary.\nAn example of a redirect URL to a result page:\nhttp:\/\/yourSite.com\/pRes.jsp\nYou can also add your own custom parameters to the redirect URL:\nhttp:\/\/yourSite.com\/pRes.jsp?order=ORDER_NUMBER\nThe next example shows a resultURL (corresponding to a redirect URL without custom parameters) with parameters appended by us to inform you of the payment status:\nhttp:\/\/yourSite.com\/pRes.jsp?merchantReference=Internet%20order%2012345&amp;skinCode=4aD37dJA&amp;shopperLocale=en_GB&amp;authResult=AUTHORISED&amp;pspReference=1211992213193029&amp;merchantSig=CPb2cObMxmIIE0khO8WhEYyKDJs%3D\n\n&lt;!-- Appended URL parameters:\n* merchantReference = Internet order 12345\n* skinCode = 4aD37dJA\n* shopperLocale = en_GB\n* authResult = AUTHORISED\n* pspReference = 1211992213193029\n* merchantSig = CPb2cObMxmIIE0khO8WhEYyKDJs%3D\n --&gt;\nTo ensure that the response is not tampered with validate the response by calculating the signature of the returned fields, except the merchantSig field. Adyen uses your secret HMAC key to sign the data, so the calculated signature should be the same as the\u00a0merchantSig\u00a0included in the response.\u2028\u2028","type":"page","locale":"pt","boost":16,"hierarchy":{"lvl0":"Home","lvl1":"Online payments","lvl2":"Classic integrations for Ecommerce","lvl3":"Hosted Payment Pages","lvl4":"Payment response for Hosted Payment Pages"},"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":"\/pt\/online-payments\/classic-integrations\/hosted-payment-pages\/hpp-payment-response"},"levels":5,"category":"Online Payments","category_color":"green","tags":["Payment","response","Hosted","Payment","Pages"]}}
