{"title":"MOLPay Component","category":"default","creationDate":1567783140,"content":"<p>This page explains how to add MOLPay to your existing Web Components integration.<\/p>\n<h2>Requirements<\/h2>\n<p>Select the <a href=\"\/pt\/online-payments\/build-your-integration\">server-side flow<\/a> that your integration uses:<\/p>\n\n<div id=\"tabQOtbj\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Sessions flow&quot;,&quot;content&quot;:&quot;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Requirement&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Integration type&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Make sure that you have built a Sessions flow &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/sessions-flow?platform=Web&amp;amp;integration=Components\\&quot;&gt;Web Components integration&lt;\\\/a&gt;. &lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Setup steps&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Before you begin, &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/add-payment-methods\\&quot;&gt;add MOLPay in your Customer Area&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:&quot;sessions&quot;,&quot;oldTabId&quot;:&quot;sessions-requirements_1&quot;,&quot;relation&quot;:&quot;sessions&quot;},{&quot;title&quot;:&quot;Advanced flow&quot;,&quot;content&quot;:&quot;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Requirement&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Integration type&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Make sure that you have built an Advanced flow &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/advanced-flow?platform=Web&amp;amp;integration=Components\\&quot;&gt;Web Components integration&lt;\\\/a&gt;. &lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Setup steps&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Before you begin, &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/add-payment-methods\\&quot;&gt;add MOLPay in your Customer Area&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:&quot;advanced&quot;,&quot;oldTabId&quot;:&quot;advanced-requirements_2&quot;,&quot;relation&quot;:&quot;advanced&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\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=Components\">Components 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>Component configuration<\/h2>\n<h3>Step 1: Create a DOM element<\/h3>\n<p>Create a DOM element on your checkout page, placing it where you want the payment method form to be rendered:<\/p>\n<pre><code class=\"language-html\"> &lt;div id=\"mol_pay-container\"&gt;&lt;\/div&gt;<\/code><\/pre>\n<h3>Step 2: Create an instance of the Component<\/h3>\n<h4>v6.0.0 or later<\/h4>\n<p>Create an instance of the Component, passing:<\/p>\n<ul>\n<li>Your instance of <code>AdyenCheckout<\/code>.<\/li>\n<\/ul>\n<pre><code class=\"language-js\">const molPay = new Redirect(checkout, { type: 'mol_pay' }).mount('#mol_pay-container');<\/code><\/pre>\n<div class=\"accordion-shortcode adl-accordion adl-accordion--max-height-transition\" data-expand=\"true\" data-ignore=\"anchorjs-link\">\n    \n    <div class=\"adl-accordion__item\" style=\"\">\n        <div tabindex=\"0\" role=\"item\" aria-expanded=\"false\" class=\"adl-accordion__header\">\n            <i class=\"adl-accordion__toggle adl-icon-chevron-down\"><\/i>\n            <div class=\"adl-accordion__title-wrapper\" data-accordion=\"#v5-x-x-or-earlier\">\n                                    <h4 class=\"adl-accordion__title\">v5.x.x or earlier<\/h4>\n                            <\/div>\n        <\/div>\n        <div role=\"region\" class=\"adl-accordion__content\">\n            \n<p>Use the <code>create<\/code> method of your <code>AdyenCheckout<\/code> instance, in this case <code>checkout<\/code>, to create the Component:<\/p>\n<pre><code class=\"language-js\">const molPayComponent = checkout.create('mol_pay').mount('#mol_pay-container');<\/code><\/pre>\n\n        <\/div>\n    <\/div>\n<\/div>\n\n<h3>Optional configuration<\/h3>\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 the Component 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<h4>v6.0.0 or later<\/h4>\n<p>Create an instance of the Component, passing:<\/p>\n<ul>\n<li>Your instance of <code>AdyenCheckout<\/code>.<\/li>\n<li>The  payment method-specific configuration.<\/li>\n<\/ul>\n<pre><code class=\"language-js\">  molPayConfiguration.type = 'mol_pay';\nconst molPayComponent = new Redirect(checkout, molPayConfiguration).mount('#mol_pay-container');<\/code><\/pre>\n<div class=\"accordion-shortcode adl-accordion adl-accordion--max-height-transition\" data-expand=\"true\" data-ignore=\"anchorjs-link\">\n    \n    <div class=\"adl-accordion__item\" style=\"\">\n        <div tabindex=\"0\" role=\"item\" aria-expanded=\"false\" class=\"adl-accordion__header\">\n            <i class=\"adl-accordion__toggle adl-icon-chevron-down\"><\/i>\n            <div class=\"adl-accordion__title-wrapper\" data-accordion=\"#v5-x-x-or-earlier\">\n                                    <h4 class=\"adl-accordion__title\">v5.x.x or earlier<\/h4>\n                            <\/div>\n        <\/div>\n        <div role=\"region\" class=\"adl-accordion__content\">\n            \n<p>Use the <code>create<\/code> method of your <code>AdyenCheckout<\/code> instance, in this case <code>checkout<\/code>, to create an instance of the Component. Add the configuration object if you created one.<\/p>\n<pre><code class=\"language-js\">const molPayComponent = checkout.create('mol_pay', molPayConfiguration).mount('#mol_pay-container');<\/code><\/pre>\n\n        <\/div>\n    <\/div>\n<\/div>\n\n<h3 id=\"issuer-ids\">List of issuer IDs<\/h3>\n\n<div id=\"tabDYIaH\">\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&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Bank Muamalat&lt;\\\/td&gt;\\n&lt;td&gt;fpx_bmmb&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Bank Rakyat&lt;\\\/td&gt;\\n&lt;td&gt;fpx_bkrm&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Bank Simpanan Nasional&lt;\\\/td&gt;\\n&lt;td&gt;fpx_bsn&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;CIMB Bank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_cimbclicks&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Hong Leong Bank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_hlb&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;HSBC Bank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_hsbc&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Kuwait Finance House&lt;\\\/td&gt;\\n&lt;td&gt;fpx_kfh&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Maybank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_mb2u&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;OCBC Bank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_ocbc&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;Public Bank&lt;\\\/td&gt;\\n&lt;td&gt;fpx_pbb&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;RHB Bank&lt;\\\/td&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-component","articleFields":{"description":"Add MOLPay to an existing Components integration.","parameters":{"integration":"Components","platform":"Web","integration_guide_url":"build-your-integration\/sessions-flow?platform=Web&integration=Components","component_name":"the Component","component_name_capitalized":"The Component","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-component","title":"MOLPay Component","content":"This page explains how to add MOLPay to your existing Web Components integration.\nRequirements\nSelect the server-side flow that your integration uses:\n\n\n    \n        \n        \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 Components v5.0.0 or later.\n \/payments&#58; If you implemented an additional use case.\n\nComponent configuration\nStep 1: Create a DOM element\nCreate a DOM element on your checkout page, placing it where you want the payment method form to be rendered:\n &lt;div id=\"mol_pay-container\"&gt;&lt;\/div&gt;\nStep 2: Create an instance of the Component\nv6.0.0 or later\nCreate an instance of the Component, passing:\n\nYour instance of AdyenCheckout.\n\nconst molPay = new Redirect(checkout, { type: 'mol_pay' }).mount('#mol_pay-container');\n\n    \n    \n        \n            \n            \n                                    v5.x.x or earlier\n                            \n        \n        \n            \nUse the create method of your AdyenCheckout instance, in this case checkout, to create the Component:\nconst molPayComponent = checkout.create('mol_pay').mount('#mol_pay-container');\n\n        \n    \n\n\nOptional 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 the Component 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};\nv6.0.0 or later\nCreate an instance of the Component, passing:\n\nYour instance of AdyenCheckout.\nThe  payment method-specific configuration.\n\n  molPayConfiguration.type = 'mol_pay';\nconst molPayComponent = new Redirect(checkout, molPayConfiguration).mount('#mol_pay-container');\n\n    \n    \n        \n            \n            \n                                    v5.x.x or earlier\n                            \n        \n        \n            \nUse the create method of your AdyenCheckout instance, in this case checkout, to create an instance of the Component. Add the configuration object if you created one.\nconst molPayComponent = checkout.create('mol_pay', molPayConfiguration).mount('#mol_pay-container');\n\n        \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 Component"},"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-component"},"levels":4,"category":"Payment method","category_color":"green","tags":["MOLPay","Component"]},"articleFiles":{"molpay-payments.js":"<p alt=\"\">molpay-payments.js<\/p>"}}
