×
// Editable fields (remove "//" from the start of each line to activate): var clearpay_min = 0.04; // As per your Clearpay contract. var clearpay_max = 1000.00; // As per your Clearpay contract. var clearpay_product_selector = '.price-area'; // The selector used to identify the price on the Product pages. // var clearpay_product_css = {'margin': '15px 0'}; // The CSS styling of the Clearpay assets on the Product pages. // var clearpay_logo_theme = 'black'; // The Clearpay logo colour. Can be 'colour' (default), 'black' or 'white'. // var clearpay_modal_open_icon = true; // If enabled, an "ⓘ" icon is displayed next to the Clearpay logo in place of the "More info" text. // var clearpay_variable_price_fallback_selector = '.product-price-selector'; // The selector used to identify the price on the Product pages if the Clearpay assets are disappearing after page-load or price is incorrect when a variant is selected. // var clearpay_variable_price_fallback_method = "interval"; // Ensures the instalment price updates when the price changes. Can be "mutation" (default) or "interval". var clearpay_cart_integration_enabled = false; // Enables/disables the Cart page display. Can be true (default) or false. // var clearpay_cart_static_selector = '.cart-subtotal-selector'; // The selector used to identify the price on the Cart page. // var clearpay_cart_static_css = {'margin': '15px 0'}; // The CSS styling of the Clearpay assets on the Cart page. // var clearpay_cart_static_logo_theme = 'black'; // The Clearpay logo colour. Can be 'colour' (default), 'black' or 'white'. // var clearpay_variable_subtotal_fallback_selector = '.cart-subtotal-selector'; // The selector used to identify the price on the Cart page if the Clearpay assets are disappearing after page-load. // var clearpay_variable_subtotal_fallback_method = "interval"; // Ensures the instalment price updates when the price changes. Can be "mutation" (default) or "interval". var clearpay_footer_logo_enabled = false; // Enables/disables the footer payment icon. Can be true (default) or false. // var clearpay_footer_logo_container = '.payment-icons'; // The selector used to identify the payment icons in the footer. // var clearpay_footer_logo_format = 'logo'; // The Clearpay payment icon style. Can be 'icon' (default), 'stacked' or 'logo'. // var clearpay_footer_logo_theme = 'white'; // The Clearpay payment icon colour. Can be 'colour' (default), 'black' or 'white'. // var clearpay_footer_logo_background = 'transparent'; // The Clearpay payment icon border style. Can be 'border' (default) or 'transparent'. // var clearpay_footer_logo_css = {'width': 'auto', 'height': 'auto', 'vertical-align': 'baseline'}; // The CSS styling of the Clearpay payment icon in the footer. // Non-editable fields: var clearpay_shop_currency = "GBP"; var clearpay_cart_currency = "GBP"; var clearpay_shop_money_format = "\u003cspan class=money\u003e£{{amount}}\u003c\/span\u003e"; var clearpay_shop_permanent_domain = "angels-share-glass.myshopify.com"; var clearpay_theme_name = "Showcase with WC - 2022-05-12"; var clearpay_product = null; var clearpay_current_variant = null; var clearpay_cart_total_price = 0; var clearpay_js_snippet_version = '1.0.12';