{"title":"Directory request","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>This table lists parameters that should be passed to the\u00a0<a href=\"https:\/\/test.adyen.com\/hpp\/directory.shtml\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">https:\/\/test.adyen.com\/hpp\/directory.shtml<\/a>\u00a0or\u00a0<a href=\"https:\/\/test.adyen.com\/hpp\/directory\/v2.shtml\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">https:\/\/test.adyen.com\/hpp\/directory\/v2.shtml<\/a>\u00a0endpoint.<\/p>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 13%\"><col style=\"width: 6%\"><col style=\"width: 6%\"><col style=\"width: 73%\"><\/colgroup><thead><tr class=\"header\"><th>Field<\/th><th>Type<\/th><th>Required<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>countryCode<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/p>\n<\/td><td>\n<p>By default, the payment methods offered to a shopper are filtered based on the location the shopper's IP address is mapped to. In this way, shoppers are not offered payment methods that are not available in the country\/region they are carrying out the transaction from.<\/p>\n<p>This IP-to-country mapping is not 100% accurate, so if you have already established the country of the shopper, you can set it explicitly in the\u00a0<code>countryCode<\/code> parameter.The <code>country<\/code> value format needs to adhere to the <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_3166-1_alpha-2\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">ISO 3166-1 alpha-2<\/a> standard.\u00a0An invalid country code results in a transaction\/request rejection.\u00a0You can <a href=\"https:\/\/www.iso.org\/obp\/ui\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">look up country codes<\/a> on the ISO website.It is recommended that you provide the\u00a0<code>countryCode<\/code>\u00a0field, to accurately state the actual location of the payment so that the correct payment methods for that location are retrieved.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>currencyCode<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>The three-character <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_4217\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">ISO currency code<\/a>.\u00a0<\/p>\n<\/td><\/tr><tr><td>\n<p><code>merchantAccount<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>The merchant account identifier you want to process the (transaction) request with.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>merchantReference<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>A reference to uniquely identify the payment.\u00a0This reference is used in all communication with you about the payment status.\u00a0We recommend using a unique value per payment; however, it is not a requirement.<\/p>\n<p>If you need to provide multiple references for a transaction, you can enter them in this field.\u00a0Separate each reference value with a hyphen character (\"-\").<\/p>\n<p>This field has a length restriction: you can enter max. 80 characters.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>merchantSig<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>The signature in Base64 encoded format. It is generated by concatenating the values of payment session fields, and by computing the HMAC using the shared secret, as configured in the skin. <br>For more information, refer to <a href=\"\/pt\/online-payments\/classic-integrations\/hosted-payment-pages\/hmac-signature-calculation\">HMAC signature calculation<\/a>.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>paymentAmount<\/code><\/p>\n<\/td><td>\n<p>Int<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>The payable amount that can be charged for the transaction, in <a href=\"\/pt\/development-resources\/currency-codes\">minor units<\/a>.The transaction amount needs to be represented in minor units according to the <a href=\"\/pt\/development-resources\/currency-codes\">Currency codes table<\/a>. Some currencies do not have decimal points, such as JPY, and some have 3 decimal points, such as BHD.<br \/>\nFor example, GBP\u00a010 is submitted as <em>1000<\/em>, whereas JPY\u00a010 is submitted as <em>10<\/em>.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>sessionValidity<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>The payment deadline; the payment needs to occur within the specified time value.This is especially useful for tickets and reservations, where you want to hold items for sale for a short, limited period of time.-   Format:\u00a0<a href=\"http:\/\/www.w3.org\/TR\/NOTE-datetime\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">ISO 8601<\/a>;\u00a0\u00a0YYYY-MM-DDThh:mm:ssTZD<a href=\"http:\/\/www.w3.org\/TR\/NOTE-datetime\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\"><\/a><\/p>\n<ul>\n<li>Example:\u00a0<em>2017-07-17T13:42:40+01:00<\/em><\/li>\n<\/ul>\n<\/td><\/tr><tr><td>\n<p><code>shopperLocale<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/p>\n<\/td><td>\n<pre><code>locale = language code + country code<\/code><\/pre>\n<\/td><\/tr><tr><td>\n<p><code>skinCode<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>A unique code to identify the <a href=\"\/online-payments\/classic-integrations\/hosted-payment-pages\/skin\">skin<\/a> you want to apply to the HPP in use to process the transaction.Note:<ul><li markdown=\"1\">You can skin your hosted payment page to make it consistent with your brand look and feel.<\/li><li markdown=\"1\">You can create multiple skins in your merchant account to provide tailored branding experiences to your shoppers.<\/li><\/ul><\/p>\n<\/td><\/tr><\/tbody><\/table>","url":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/hosted-payment-pages\/hosted-payment-pages-api\/directory-request","articleFields":{"id":"25133322","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)","new_desc":"integrating using our Checkout APIs"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/hosted-payment-pages\/hosted-payment-pages-api\/directory-request","title":"Directory request","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\nThis table lists parameters that should be passed to the\u00a0https:\/\/test.adyen.com\/hpp\/directory.shtml\u00a0or\u00a0https:\/\/test.adyen.com\/hpp\/directory\/v2.shtml\u00a0endpoint.\nFieldTypeRequiredDescription\ncountryCode\n\nString\n\n\n\nBy default, the payment methods offered to a shopper are filtered based on the location the shopper's IP address is mapped to. In this way, shoppers are not offered payment methods that are not available in the country\/region they are carrying out the transaction from.\nThis IP-to-country mapping is not 100% accurate, so if you have already established the country of the shopper, you can set it explicitly in the\u00a0countryCode parameter.The country value format needs to adhere to the ISO 3166-1 alpha-2 standard.\u00a0An invalid country code results in a transaction\/request rejection.\u00a0You can look up country codes on the ISO website.It is recommended that you provide the\u00a0countryCode\u00a0field, to accurately state the actual location of the payment so that the correct payment methods for that location are retrieved.\n\ncurrencyCode\n\nString\n\n\n\nThe three-character ISO currency code.\u00a0\n\nmerchantAccount\n\nString\n\n\n\nThe merchant account identifier you want to process the (transaction) request with.\n\nmerchantReference\n\nString\n\n\n\nA reference to uniquely identify the payment.\u00a0This reference is used in all communication with you about the payment status.\u00a0We recommend using a unique value per payment; however, it is not a requirement.\nIf you need to provide multiple references for a transaction, you can enter them in this field.\u00a0Separate each reference value with a hyphen character (\"-\").\nThis field has a length restriction: you can enter max. 80 characters.\n\nmerchantSig\n\nString\n\n\n\nThe signature in Base64 encoded format. It is generated by concatenating the values of payment session fields, and by computing the HMAC using the shared secret, as configured in the skin. For more information, refer to HMAC signature calculation.\n\npaymentAmount\n\nInt\n\n\n\nThe payable amount that can be charged for the transaction, in minor units.The transaction amount needs to be represented in minor units according to the Currency codes table. Some currencies do not have decimal points, such as JPY, and some have 3 decimal points, such as BHD.\nFor example, GBP\u00a010 is submitted as 1000, whereas JPY\u00a010 is submitted as 10.\n\nsessionValidity\n\nString\n\n\n\nThe payment deadline; the payment needs to occur within the specified time value.This is especially useful for tickets and reservations, where you want to hold items for sale for a short, limited period of time.-   Format:\u00a0ISO 8601;\u00a0\u00a0YYYY-MM-DDThh:mm:ssTZD\n\nExample:\u00a02017-07-17T13:42:40+01:00\n\n\nshopperLocale\n\nString\n\n\n\nlocale = language code + country code\n\nskinCode\n\nString\n\n\n\nA unique code to identify the skin you want to apply to the HPP in use to process the transaction.Note:You can skin your hosted payment page to make it consistent with your brand look and feel.You can create multiple skins in your merchant account to provide tailored branding experiences to your shoppers.\n","type":"page","locale":"pt","boost":15,"hierarchy":{"lvl0":"Home","lvl1":"Online payments","lvl2":"Classic integrations for Ecommerce","lvl3":"Hosted Payment Pages","lvl4":"Reference for Hosted Payment Pages","lvl5":"Directory request"},"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\/hosted-payment-pages-api","lvl5":"\/pt\/online-payments\/classic-integrations\/hosted-payment-pages\/hosted-payment-pages-api\/directory-request"},"levels":6,"category":"Online Payments","category_color":"green","tags":["Directory","request"]}}
