{"title":"MOLPay Drop-in integration","category":"default","creationDate":1776961628,"content":"<p>This page explains how to add MOLPay to your existing Web Drop-in integration.<\/p>\n<h2>Requirements<\/h2>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Requirement<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Integration type<\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that you have built your <a href=\"\/pt\/online-payments\/build-your-integration\">Web Drop-in integration<\/a>.  <\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Setup steps<\/strong><\/td>\n<td style=\"text-align: left;\">Before you begin, <a href=\"\/pt\/payment-methods\/add-payment-methods\">add MOLPay in your test Customer Area<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>API reference<\/h2>\n<p>You do not need to send additional fields for MOLPay. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:<\/p>\n<ul>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/sessions\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/sessions<\/a>&#58; This is the default with <a href=\"\/pt\/online-payments\/build-your-integration\/sessions-flow?platform=Web&amp;integration=Drop-in\">Drop-in v5.0.0<\/a> or later.<\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a>&#58; If you implemented an <a href=\"\/pt\/online-payments\/build-your-integration\">additional use case<\/a>.<\/li>\n<\/ul>\n<h2>Drop-in configuration<\/h2>\n<p>You can add the following optional configuration:<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter name<\/th>\n<th>Description<\/th>\n<th>Default<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>showImage<\/code><\/td>\n<td>Set to <strong>false<\/strong> to remove the bank logos from the MOLPay form.<\/td>\n<td><strong>true<\/strong><\/td>\n<\/tr>\n<tr>\n<td><code>issuer<\/code><\/td>\n<td>Set to a <a href=\"#issuer-ids\">MOLPay issuer ID<\/a> to preselect a specific bank.<\/td>\n<td>No bank is preselected.<\/td>\n<\/tr>\n<tr>\n<td><code>highlightedIssuers<\/code><\/td>\n<td>Set to the <a href=\"#issuer-ids\">MOLPay issuer IDs<\/a> for banks you want to show on top of the dropdown menu. Added in <a href=\"\/pt\/online-payments\/release-notes?integration_type=web&amp;version=5.1.0\">v5.1.0<\/a><\/td>\n<td>All issuers are shown in the dropdown.<\/td>\n<\/tr>\n<tr>\n<td><code>placeholder<\/code><\/td>\n<td>The string you want to show as the dropdown menu text. Custom translation configuration overrides this value.<\/td>\n<td><strong>Select your bank<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>If you want to add an optional configuration, include this in a configuration object. The following example shows how to configure Drop-in to remove the bank logos, and preselect a MOLPay issuer. In this example, HSBC Bank is selected:<\/p>\n<pre><code class=\"language-js\">const molPayConfiguration = {\n  showImage: false, \/\/ Optional. Set to **false** to remove the bank logos from the MOLPay form.\n  issuer: \"fpx_hsbc\" \/\/ Optional. Set this to an **id** of an MOLPay issuer to preselect it. It is set to HSBC Bank.\n};<\/code><\/pre>\n<p>Include the <code>molPayConfiguration<\/code> object when <a href=\"\/pt\/online-payments\/build-your-integration\/sessions-flow?platform=Web&amp;integration=Drop-in#create-instance\">creating a configuration object for Drop-in<\/a>:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'AdyenCheckout configuration'\" :id=\"''\" :code-data='[{\"language\":\"js\",\"tabTitle\":\"\",\"content\":\"const dropinConfiguration = {\\n  \\\/\\\/ ...  other required configuration\\n  paymentMethodsConfiguration: {\\n    mol_pay: molPayConfiguration\\n  }\\n};\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>Pass the Drop-in configuration object when you mount the instance of Drop-in:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Pass the Drop-in configuration object'\" :id=\"''\" :code-data='[{\"language\":\"js\",\"tabTitle\":\"\",\"content\":\"\\\/\\\/ Create an instance of AdyenCheckout.\\nconst checkout = await AdyenCheckout(checkoutConfiguration);\\n\\n\\\/\\\/ Pass the Drop-in configuration object that you created.\\nconst dropin = new Dropin(checkout, dropinConfiguration).mount(#molPay-container)\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3 id=\"issuer-ids\">List of issuer IDs<\/h3>\n\n<div id=\"tabKkhfp\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Malaysia&quot;,&quot;content&quot;:&quot;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Bank name&lt;\\\/th&gt;\\n&lt;th&gt;Issuer ID&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Affin Bank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_abb&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Agro Bank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_agrobank&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Alliance Bank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_abmb&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Am Bank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_amb&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Bank Islam&lt;\\\/td&gt;\\n&lt;td&gt;fpx_bimb&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gt;\\n&lt;td&gt;fpx_rhb&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Standard Chartered Bank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_scb&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;UOB Bank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_uob&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;malaysia_0_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;Thailand&quot;,&quot;content&quot;:&quot;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Bank name&lt;\\\/th&gt;\\n&lt;th&gt;Issuer ID&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Bangkok Bank&lt;\\\/td&gt;\\n&lt;td&gt;molpay_bangkokbank&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Krungsri Bank&lt;\\\/td&gt;\\n&lt;td&gt;molpay_krungsribank&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Krung Thai Bank&lt;\\\/td&gt;\\n&lt;td&gt;molpay_krungthaibank&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;The Siam Commercial Bank&lt;\\\/td&gt;\\n&lt;td&gt;molpay_siamcommercialbank&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Kasikorn Bank&lt;\\\/td&gt;\\n&lt;td&gt;molpay_kbank&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;thailand_1_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='false'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2>Test and go live<\/h2>\n<p>Using any issuer ID that is available for the MOLPay eBanking Component for the respective country\/region, make MOLPay online banking test payments to test the different payment results.<\/p>\n<p>Check the status of the MOLPay test payments in your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a> &gt; <strong>Transactions<\/strong> &gt; <strong>Payments<\/strong>.<\/p>\n<p> <\/p>\n<p>Before you can accept live MOLPay payments, you need to <a href=\"\/pt\/payment-methods\/add-payment-methods\">submit a request for MOLPay<\/a> in your <a href=\"https:\/\/ca-live.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">live Customer Area<\/a>.<\/p>","url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/molpay\/web-drop-in","articleFields":{"description":"Add MOLPay to an existing Drop-in integration.","parameters":{"integration":"Drop-in","platform":"Web","integration_guide_url":"build-your-integration\/sessions-flow?platform=Web&integration=Drop-in","component_name":"Drop-in","component_name_capitalized":"Drop-in","component_class":"Redirect","payment_method":"MOLPay","payment_method_type":"mol_pay","component_js_const":"molPay"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/molpay\/web-drop-in","title":"MOLPay Drop-in integration","content":"This page explains how to add MOLPay to your existing Web Drop-in integration.\nRequirements\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nMake sure that you have built your Web Drop-in integration.  \n\n\nSetup steps\nBefore you begin, add MOLPay in your test Customer Area.\n\n\n\nAPI reference\nYou do not need to send additional fields for MOLPay. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:\n\n \/sessions&#58; This is the default with Drop-in v5.0.0 or later.\n \/payments&#58; If you implemented an additional use case.\n\nDrop-in configuration\nYou can add the following optional configuration:\n\n\n\nParameter name\nDescription\nDefault\n\n\n\n\nshowImage\nSet to false to remove the bank logos from the MOLPay form.\ntrue\n\n\nissuer\nSet to a MOLPay issuer ID to preselect a specific bank.\nNo bank is preselected.\n\n\nhighlightedIssuers\nSet to the MOLPay issuer IDs for banks you want to show on top of the dropdown menu. Added in v5.1.0\nAll issuers are shown in the dropdown.\n\n\nplaceholder\nThe string you want to show as the dropdown menu text. Custom translation configuration overrides this value.\nSelect your bank\n\n\n\nIf you want to add an optional configuration, include this in a configuration object. The following example shows how to configure Drop-in to remove the bank logos, and preselect a MOLPay issuer. In this example, HSBC Bank is selected:\nconst molPayConfiguration = {\n  showImage: false, \/\/ Optional. Set to **false** to remove the bank logos from the MOLPay form.\n  issuer: \"fpx_hsbc\" \/\/ Optional. Set this to an **id** of an MOLPay issuer to preselect it. It is set to HSBC Bank.\n};\nInclude the molPayConfiguration object when creating a configuration object for Drop-in:\n\n    \n\nPass the Drop-in configuration object when you mount the instance of Drop-in:\n\n    \n\nList of issuer IDs\n\n\n    \n        \n        \n    \n\n\nTest and go live\nUsing any issuer ID that is available for the MOLPay eBanking Component for the respective country\/region, make MOLPay online banking test payments to test the different payment results.\nCheck the status of the MOLPay test payments in your Customer Area &gt; Transactions &gt; Payments.\n \nBefore you can accept live MOLPay payments, you need to submit a request for MOLPay in your live Customer Area.","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"MOLPay online banking","lvl3":"MOLPay Drop-in integration"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/pt\/payment-methods\/molpay","lvl3":"\/pt\/payment-methods\/molpay\/web-drop-in"},"levels":4,"category":"Payment method","category_color":"green","tags":["MOLPay","Drop-in","integration"]},"articleFiles":{"molpay-payments.js":"<p alt=\"\">molpay-payments.js<\/p>"}}
