{"id":12644,"date":"2023-11-27T17:29:37","date_gmt":"2023-11-27T16:29:37","guid":{"rendered":"https:\/\/backup.supernils.be\/?page_id=12644"},"modified":"2023-11-27T17:34:43","modified_gmt":"2023-11-27T16:34:43","slug":"elementor-12610-2","status":"publish","type":"page","link":"https:\/\/backup.supernils.be\/en\/elementor-12610-2\/","title":{"rendered":"Mollie Payment page heart friends (effective members) asbl SuperNils"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"12644\" class=\"elementor elementor-12644\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a3b813f e-flex e-con-boxed e-con e-parent\" data-id=\"a3b813f\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-03c4109 elementor-widget elementor-widget-spacer\" data-id=\"03c4109\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-11e3b64 elementor-widget elementor-widget-heading\" data-id=\"11e3b64\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Payment page heart friends (members) vzw SuperNils<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-70f6af2 elementor-widget elementor-widget-spacer\" data-id=\"70f6af2\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-838beb3 e-con-full e-flex e-con e-child\" data-id=\"838beb3\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-11a8ed7 elementor-widget elementor-widget-shortcode\" data-id=\"11a8ed7\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><form enctype=\"multipart\/form-data\" data-mollie-forms=\"2.7.12\" method=\"post\" id=\"rfmp_12626\" class=\"\" action=\"\"><input type=\"hidden\" id=\"mollie_forms_12626_nonce\" name=\"mollie_forms_12626_nonce\" value=\"4efedf4170\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/en\/wp-json\/wp\/v2\/pages\/12644\" \/><input type=\"hidden\" name=\"mollie-forms-post\" value=\"12626\"><div class=\"mollie_forms_field_row\" style=\"margin:10px 0\" ><label for=\"form_12626_field_0\">Name <span class=\"mollie-forms-required\">*<\/span><\/label><br><input type=\"text\" name=\"form_12626_field_0\" id=\"form_12626_field_0\" value label=\"Naam\" class required style=\"width: 100%\"><\/div><div class=\"mollie_forms_field_row\" style=\"margin:10px 0\" ><label for=\"form_12626_field_1\">Email <span class=\"mollie-forms-required\">*<\/span><\/label><br><input type=\"email\" name=\"form_12626_field_1\" id=\"form_12626_field_1\" value label=\"E-mail\" class required style=\"width: 100%\"><\/div><div class=\"mollie_forms_field_row\" style=\"margin:10px 0\" ><label for=\"form_12626_field_2\"><\/label><br><select name=\"rfmp_priceoptions_12626\" onchange=\"mollie_forms_recurring_methods_12626();mollie_forms_12626_totals();\" id=\"form_12626_field_2\" class required style=\"width: 100%;\"><option   data-frequency=\"once\" \n                                    data-freq=\"\" \n                                    data-pricetype=\"open\" \n                                    data-price=\"40.00\" \n                                    data-vat=\"\" \n                                    value=\"21\" >\n                                I will donate at least 40 euros and become a member\n                          <\/option><\/select><p id=\"rfmp_open_amount_12626\" style=\"display:none;\">\n                    <label>Amount \n                        <span style=\"color:red;\">*<\/span><br>\n                        <span class=\"rfmp_currency_12626\">\u20ac<\/span> \n                        <input type=\"number\" step=\"any\" value=\"\" onchange=\"mollie_forms_12626_totals();\" onkeyup=\"mollie_forms_12626_totals();\" name=\"rfmp_amount_12626\"> \n                        <span id=\"rfmp_amount_freq_12626\"><\/span>\n                    <\/label>\n                    <input type=\"hidden\" name=\"rfmp_amount_required_12626\" id=\"rfmp_open_amount_required_12626\" value=\"0\">\n                  <\/p>\n        <script>\n        window.onload = setTimeout(mollie_forms_12626_totals, 100);\n        function mollie_forms_12626_totals() {\n            var priceoption = document.getElementsByName(\"rfmp_priceoptions_12626\");\n            var quantities  = document.getElementsByClassName(\"rfmp_priceoptions_12626_quantity\");\n            var subtotal = 0, total = 0, vat = 0;\n            \n            \n            \/\/ Add shipping costs to total\n            var shippingCosts = \"\";\n            if (shippingCosts) {\n                var shippingVat = 0.21 * parseFloat(shippingCosts);\n                vat   += shippingVat;\n                total += parseFloat(shippingCosts);\n                subtotal += parseFloat(shippingCosts);\n                \n            }\n            \n            if (0 in priceoption) {\n                var openAmount  = document.getElementsByName(\"rfmp_amount_12626\");\n            \n                \/\/ single price option\n                if (priceoption[0].tagName == \"INPUT\") {\n                    for (var i = 0, length = priceoption.length; i < length; i++) {\n                        if (priceoption[i].checked) {\n                        \n                            if (priceoption[i].dataset.pricetype == \"open\") {\n                                openAmount[0].setAttribute(\"min\", isNaN(priceoption[i].dataset.price) ? 0 : priceoption[i].dataset.price);\n                                var optionPrice = parseFloat(openAmount[0].value);\n                            } else {\n                                openAmount[0].removeAttribute(\"min\");\n                                var optionPrice = parseFloat(priceoption[i].dataset.price);\n                            }\n\n                            if (optionPrice <= 0 || isNaN(optionPrice)) {\n                                break;\n                            }\n                            \n                            var optionVat = (parseInt(priceoption[i].dataset.vat) \/ 100) * optionPrice;\n                        \n                            vat += optionVat;\n                            total += optionPrice;\n                            subtotal += optionPrice;\n                            \n                            break;\n                        }\n                    }\n                } else {\n                    if (priceoption[0].options[priceoption[0].selectedIndex].dataset.pricetype == \"open\") {\n                        openAmount[0].setAttribute(\"min\", isNaN(priceoption[0].options[priceoption[0].selectedIndex].dataset.price) ? 0 : priceoption[0].options[priceoption[0].selectedIndex].dataset.price);\n                        var optionPrice = parseFloat(openAmount[0].value);\n                    } else {\n                        openAmount[0].removeAttribute(\"min\");\n                        var optionPrice = parseFloat(priceoption[0].options[priceoption[0].selectedIndex].dataset.price);\n                    }\n                            \n                    if (optionPrice > 0 || isNaN(optionPrice)) {\n                        var optionVat = (parseInt(priceoption[0].options[priceoption[0].selectedIndex].dataset.vat) \/ 100) * optionPrice;\n                        vat   += optionVat;\n                        total += optionPrice;\n                        subtotal += optionPrice;\n                        \n                    }\n                }\n            } else if (quantities) {\n                \/\/ multiple price options with quantity\n                for (var i = 0; i < quantities.length; i++) {\n                    var q = parseInt(quantities[i].value);\n                    if (q <= 0 || isNaN(q)) {\n                        continue;\n                    }\n                    \n                    var optionPrice = parseFloat(quantities[i].dataset.price) * q;\n                    if (optionPrice > 0 || isNaN(optionPrice)) {\n                        var optionVat = (parseInt(quantities[i].dataset.vat) \/ 100) * optionPrice;\n                        vat   += optionVat;\n                        total += optionPrice;\n                        subtotal += optionPrice;\n                        \n                    }\n                }\n            }\n            \n            \/\/ payment method extra costs\n            var methods = document.getElementsByName(\"rfmp_payment_method_12626\");\n            if (total > 0) {\n\t            if (0 in methods) {\n\t                if (methods[0].tagName == \"INPUT\") {\n\t                    \/\/ radio buttons\n\t                    for (var i = 0; i < methods.length; i++) {\n\t                        if (methods[i].checked) {\n\t                            var methodAmount = ((parseInt(methods[i].dataset.variable) \/ 100) * total) + parseFloat(methods[i].dataset.fixed);\n\t                            var methodVat = 0.21 * methodAmount;\n\t                            vat   += methodVat;\n\t                            total += methodAmount;\n\t                            subtotal += methodAmount;\n\t                            \n\t                            break;\n\t                        }\n\t                    }\n\t                } else {\n\t                    \/\/ dropdown\n\t                    var methodAmount = ((parseInt(methods[0].options[methods[0].selectedIndex].dataset.variable) \/ 100) * total) + parseFloat(methods[0].options[methods[0].selectedIndex].dataset.fixed);\n\t                    var methodVat = 0.21 * methodAmount;\n\t                    vat   += methodVat;\n\t                    total += methodAmount;\n\t                    subtotal += methodAmount;\n\t                    \n\t                }\n\t            }\n            }\n\n            \/\/ Display subtotal\n            var subtotalValue = document.getElementById(\"rfmp_totals_12626_subtotal_value\");\n            if (subtotalValue) {\n                var subtotalAmount = subtotal.toFixed(2) > 0 ? subtotal.toFixed(2) : \"0.00\";\n                subtotalValue.innerHTML = subtotalAmount.replace(\".\", \",\");\n            }\n            \n            \/\/ Display total\n            var totalValue = document.getElementById(\"rfmp_totals_12626_total_value\");\n            if (totalValue) {\n                var totalAmount = total.toFixed(2) > 0 ? total.toFixed(2) : \"0.00\";\n                totalValue.innerHTML = totalAmount.replace(\".\", \",\");\n            }\n            \n            \/\/ Display VAT\n            var totalVatValue = document.getElementById(\"rfmp_totals_12626_vat_value\");\n            if (totalVatValue) {\n                var totalVat = vat.toFixed(2) > 0 ? vat.toFixed(2) : \"0.00\";\n                totalVatValue.innerHTML = totalVat.replace(\".\", \",\");\n            }\n            \n            \n            if (total <= 0 || isNaN(total)) {\n                document.getElementById(\"payment_methods_12626\").style.display = \"none\";\n            } else {\n                document.getElementById(\"payment_methods_12626\").style.display = \"block\";\n            }\n        }\n        <\/script><\/div><div class=\"mollie_forms_field_row\" style=\"margin:10px 0\" id=\"payment_methods_12626\"><label for=\"form_12626_field_3\">Payment method <span class=\"mollie-forms-required\">*<\/span><\/label><br>\n            <script>\n            window.onload = setTimeout(mollie_forms_recurring_methods_12626, 100);\n            function mollie_forms_recurring_methods_12626() {\n                var priceoptions = document.getElementsByName(\"rfmp_priceoptions_12626\");\n                var freq = \"\";\n                var frequency = \"once\";\n                if (0 in priceoptions) {\n                    if (priceoptions[0].tagName == \"INPUT\") {\n                        for (var i = 0, length = priceoptions.length; i < length; i++) {\n                            if (priceoptions[i].checked) {\n                                frequency = priceoptions[i].dataset.frequency;\n                                var pricetype = priceoptions[i].dataset.pricetype;\n                                freq = priceoptions[i].dataset.freq;\n                                break;\n                            }\n                        }\n                    } else {\n                        frequency = priceoptions[0].options[priceoptions[0].selectedIndex].dataset.frequency ? priceoptions[0].options[priceoptions[0].selectedIndex].dataset.frequency : \"once\";\n                        var pricetype = priceoptions[0].options[priceoptions[0].selectedIndex].dataset.pricetype;\n                        freq = priceoptions[0].options[priceoptions[0].selectedIndex].dataset.freq;\n                    }\n                } else {\n                    var quantities = document.getElementsByClassName(\"rfmp_priceoptions_12626_quantity\");\n                    var pricetype = \"fixed\";\n                    frequency = \"once\";\n                    for (var i = 0, length = quantities.length; i < length; i++) {\n                        if (quantities[i].value > 0) {\n                            if (quantities[i].dataset.frequency != \"once\") {\n                                frequency = \"recurring\";\n                            }\n                        }\n                    }\n                }\n\n                var checkbox = document.getElementsByName(\"rfmp_checkbox_12626\")[0];\n                if (frequency==\"once\") {\n                    checkbox.removeAttribute(\"required\");\n                } else {\n                    checkbox.setAttribute(\"required\", \"required\");\n                }\n\n                document.getElementById(\"rfmp_checkbox_12626\").style.display = (frequency==\"once\" ? \"none\" : \"block\");\n                document.getElementById(\"rfmp_checkbox_hidden_12626\").value = (frequency==\"once\" ? 0 : 1);\n                document.getElementById(\"rfmp_open_amount_12626\").style.display = (pricetype==\"open\" ? \"block\" : \"none\");\n                document.getElementById(\"rfmp_open_amount_required_12626\").value = (pricetype==\"open\" ? 1 : 0);\n                document.getElementById(\"rfmp_amount_freq_12626\").innerHTML = freq;\n                \n                if (location.protocol === \"https:\" && window.ApplePaySession && window.ApplePaySession.canMakePayments()) {\n                    \/\/\n                } else if (document.getElementById(\"rfmp_pm_applepay_12626\") !== null) {\n                    document.getElementById(\"rfmp_pm_applepay_12626\").remove();\n                }\n                \n                if (document.getElementById(\"rfmp_pm_bancontact_12626\") !== null){\n    document.getElementById(\"rfmp_pm_bancontact_12626\").style.display = (frequency!=\"once\" ? \"none\" : \"block\");\n}\n\n            }\n            <\/script><select id=\"form_12626_field_3\" label=\"Betaalmethode\" class required name=\"rfmp_payment_method_12626\" style=\"width: 100%;\" onchange=\"mollie_forms_12626_totals();\"><option    id=\"rfmp_pm_bancontact_12626\" \n                                                value=\"bancontact\"\n                                                data-fixed=\"0\" \n                                                data-variable=\"0\" \n                                                >\n                                        Bancontact\n                                     <\/option><\/select><input type=\"hidden\" id=\"rfmp_checkbox_hidden_12626\" name=\"rfmp_checkbox_hidden_12626\" value=\"0\"><br><label id=\"rfmp_checkbox_12626\" style=\"display:none;\">\n                            <input type=\"checkbox\" name=\"rfmp_checkbox_12626\" value=\"1\">I hereby give authorization to collect the recurring amount from my account periodically.\n                         <\/label><\/div><div class=\"mollie_forms_field_row\" style=\"margin:10px 0\" ><\/div><div class=\"mollie_forms_field_row\" style=\"margin:10px 0\" ><\/div><div class=\"mollie_forms_field_row\" style=\"margin:10px 0\" ><br><button type=\"submit\" name=\"form_12626_field_6\" id=\"form_12626_field_6\" value label=\"Versturen\" class required>Send<\/button><\/div><input type=\"hidden\" name=\"trp-form-language\" value=\"en\"\/><\/form><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6fa2b25 elementor-widget elementor-widget-spacer\" data-id=\"6fa2b25\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Payment page heart friends (members) vzw SuperNils<\/p>","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-12644","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/backup.supernils.be\/en\/wp-json\/wp\/v2\/pages\/12644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/backup.supernils.be\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/backup.supernils.be\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/backup.supernils.be\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/backup.supernils.be\/en\/wp-json\/wp\/v2\/comments?post=12644"}],"version-history":[{"count":7,"href":"https:\/\/backup.supernils.be\/en\/wp-json\/wp\/v2\/pages\/12644\/revisions"}],"predecessor-version":[{"id":12651,"href":"https:\/\/backup.supernils.be\/en\/wp-json\/wp\/v2\/pages\/12644\/revisions\/12651"}],"wp:attachment":[{"href":"https:\/\/backup.supernils.be\/en\/wp-json\/wp\/v2\/media?parent=12644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}