{"id":6937,"date":"2017-05-29T00:00:00","date_gmt":"2017-05-28T16:00:00","guid":{"rendered":"https:\/\/www.fraudlabspro.com\/resources2\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/"},"modified":"2026-08-06T16:51:43","modified_gmt":"2026-08-06T08:51:43","password":"","slug":"how-to-enable-credit-card-validation-in-woocommerce","status":"publish","type":"docs","link":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/","title":{"rendered":"How to enable Credit Card Validation in WooCommerce for Stripe Gateway"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Notice<\/strong>: It is recommended to use the latest\u00a0<strong>FraudLabs Pro for WooCommerce<\/strong>\u00a0plugin so that the credit card details can be captured automatically without following the steps below. You have to contact the payment gateway creator if the payment gateway does not provide the credit card details.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Credit card information is highly sensitive data and should be protected from unauthorized access. Due to this reason, it is understandable that neither payment gateway plugin nor WooCommerce is going to expose this information to a 3rd party integrator, like us, to read and process, even for a very good reason \u2013 to perform the fraud validation. This is why you might have noticed an&nbsp;<strong>N\/A<\/strong>&nbsp;value for all credit card related fields in our fraud validation results.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Credit card information is one of the key elements in fraud detection. Obviously, you would want the best fraud protection possible, therefore one might wonder, is there a workaround to this limitation? The answer is yes. It involves some minor editing to the payment gateway file, and the modification is payment gateway specific. In this tutorial, we will guide you with step-by-step instructions to edit the&nbsp;<strong>Stripe<\/strong>&nbsp;payment gateway to enable the credit card validation. Below are the modifications to be done:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#babed8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>jQuery(\"body\").on( \"change\", \"#stripe-card-number\", function() {\n\tvar cc = jQuery(\"#stripe-card-number\").val();\n\tvar flp_ccbin = cc.substring(0,7);\n\tflp_ccbin = flp_ccbin.replace(\/s+\/g, '');\n\n\tvar flp_cchash = cc.replace(\/s+\/g, '');\n\n\tvar getUrl = window.location;\n\tvar baseUrl = getUrl .protocol + \"\/\/\" + getUrl.host + \"\/\" + getUrl.pathname.split('\/')&#91;1&#93;;\n\t$.post(baseUrl + '\/wp-content\/plugins\/fraudlabs-pro-for-woocommerce\/flp_cc.php', {flp_cc_bin: flp_ccbin, flp_cc_hash: flp_cchash});\n});<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-palenight\" style=\"background-color: #292D3E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #82AAFF\">jQuery<\/span><span style=\"color: #BABED8\">(<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">body<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #BABED8\">)<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">on<\/span><span style=\"color: #BABED8\">( <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">change<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">,<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">#stripe-card-number<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">,<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C792EA\">function<\/span><span style=\"color: #89DDFF\">()<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">\t<\/span><span style=\"color: #C792EA\">var<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">cc<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #82AAFF\">jQuery<\/span><span style=\"color: #F07178\">(<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">#stripe-card-number<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #F07178\">)<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">val<\/span><span style=\"color: #F07178\">()<\/span><span style=\"color: #89DDFF\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">\t<\/span><span style=\"color: #C792EA\">var<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">flp_ccbin<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">cc<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">substring<\/span><span style=\"color: #F07178\">(<\/span><span style=\"color: #F78C6C\">0<\/span><span style=\"color: #89DDFF\">,<\/span><span style=\"color: #F78C6C\">7<\/span><span style=\"color: #F07178\">)<\/span><span style=\"color: #89DDFF\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">\t<\/span><span style=\"color: #BABED8\">flp_ccbin<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">flp_ccbin<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">replace<\/span><span style=\"color: #F07178\">(<\/span><span style=\"color: #89DDFF\">\/<\/span><span style=\"color: #C3E88D\">s<\/span><span style=\"color: #89DDFF\">+\/<\/span><span style=\"color: #F78C6C\">g<\/span><span style=\"color: #89DDFF\">,<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">&#39;&#39;<\/span><span style=\"color: #F07178\">)<\/span><span style=\"color: #89DDFF\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">\t<\/span><span style=\"color: #C792EA\">var<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">flp_cchash<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">cc<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">replace<\/span><span style=\"color: #F07178\">(<\/span><span style=\"color: #89DDFF\">\/<\/span><span style=\"color: #C3E88D\">s<\/span><span style=\"color: #89DDFF\">+\/<\/span><span style=\"color: #F78C6C\">g<\/span><span style=\"color: #89DDFF\">,<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">&#39;&#39;<\/span><span style=\"color: #F07178\">)<\/span><span style=\"color: #89DDFF\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">\t<\/span><span style=\"color: #C792EA\">var<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">getUrl<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">window<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #BABED8\">location<\/span><span style=\"color: #89DDFF\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">\t<\/span><span style=\"color: #C792EA\">var<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">baseUrl<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">getUrl<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #BABED8\">protocol<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">+<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">\/\/<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">+<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">getUrl<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #BABED8\">host<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">+<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">\/<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">+<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">getUrl<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #BABED8\">pathname<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">split<\/span><span style=\"color: #F07178\">(<\/span><span style=\"color: #89DDFF\">&#39;<\/span><span style=\"color: #C3E88D\">\/<\/span><span style=\"color: #89DDFF\">&#39;<\/span><span style=\"color: #F07178\">)&#91;<\/span><span style=\"color: #F78C6C\">1<\/span><span style=\"color: #F07178\">&#93;<\/span><span style=\"color: #89DDFF\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">\t<\/span><span style=\"color: #BABED8\">$<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">post<\/span><span style=\"color: #F07178\">(<\/span><span style=\"color: #BABED8\">baseUrl<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">+<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">&#39;<\/span><span style=\"color: #C3E88D\">\/wp-content\/plugins\/fraudlabs-pro-for-woocommerce\/flp_cc.php<\/span><span style=\"color: #89DDFF\">&#39;<\/span><span style=\"color: #89DDFF\">,<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><span style=\"color: #F07178\">flp_cc_bin<\/span><span style=\"color: #89DDFF\">:<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">flp_ccbin<\/span><span style=\"color: #89DDFF\">,<\/span><span style=\"color: #F07178\"> flp_cc_hash<\/span><span style=\"color: #89DDFF\">:<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #BABED8\">flp_cchash<\/span><span style=\"color: #89DDFF\">}<\/span><span style=\"color: #F07178\">)<\/span><span style=\"color: #89DDFF\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><span style=\"color: #BABED8\">)<\/span><span style=\"color: #89DDFF\">;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What we did here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Read the credit number from the user input<\/li>\n\n\n\n<li>Extract the 6 digits Credit Card BIN<\/li>\n\n\n\n<li>Hashed the entire credit card number using SHA-1(refer flp_cc.php)<\/li>\n\n\n\n<li>Save them into session object for later validation (refer flp_cc.php)\u00a0<br><em><strong>Note<\/strong>: The flp_cc.php file is located in fraudlabs-pro-for-woocommerce plugin folder.<\/em><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The above logic will convert the plain credit card number into an irreversible hashed string for the fraud validation. Neither us nor the 3rd party will be able to read the plain credit card number from the hashed string. Below are the steps to enable the fraud validation for the payment gateway.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em><strong>Note<\/strong>: The following guide is based on&nbsp;<strong>WooCommerce Stripe Payment Gateway<\/strong>&nbsp;version 4.0.7 with&nbsp;<strong>WordPress<\/strong>&nbsp;version 4.8.1.<\/em><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download the\u00a0<strong>WooCommerce Stripe Payment Gateway<\/strong>\u00a0at\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/woocommerce-gateway-stripe\">https:\/\/wordpress.org\/plugins\/woocommerce-gateway-stripe<\/a>.<\/li>\n\n\n\n<li>Go to the\u00a0<strong>Settings<\/strong>\u00a0page and disable the &#8220;<strong>Stripe Checkout<\/strong>&#8221; option.<br><em><strong>Note<\/strong>: This guide is not workable for this option so it must be disabled.<\/em><br><img loading=\"lazy\" decoding=\"async\" width=\"587\" height=\"406\" class=\"wp-image-3133\" style=\"width: 587px;\" src=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout.png\" alt=\"\" srcset=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout.png 628w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout-300x207.png 300w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout-50x35.png 50w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout-600x415.png 600w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout-320x221.png 320w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><a href=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout.png\"><\/a><\/li>\n\n\n\n<li>Save the settings.<\/li>\n\n\n\n<li>Edit the\u00a0<strong>stripe.js<\/strong>\u00a0file which is located in the\u00a0<strong><em>wordpress\/wp-content\/plugins\/woocommerce-gateway-stripe\/assets\/js\/<\/em><\/strong>\u00a0folder.<\/li>\n\n\n\n<li>Copy the code provided above and paste it before the closing bracket (<code>}<\/code>) of the <code>init<\/code> function..<\/li>\n\n\n\n<li>Minify the stripe.js file by using the tool at\u00a0<a href=\"https:\/\/jscompress.com\/\">https:\/\/jscompress.com\/<\/a>.<\/li>\n\n\n\n<li>Download the Output file, rename it to\u00a0<strong>stripe.min.js<\/strong>\u00a0and overwrite the original stripe.min.js in the\u00a0<strong><em>wordpress\/wp-content\/plugins\/woocommerce-gateway-stripe\/assets\/js\/<\/em><\/strong>\u00a0folder.<\/li>\n\n\n\n<li>Done.<em><strong>Note<\/strong>:\u00a0<strong>stripe.min.sample.js<\/strong>\u00a0in\u00a0<a href=\"http:\/\/www.fraudlabspro.com\/downloads\/fraudlabspro_wc_stripe.zip\">http:\/\/www.fraudlabspro.com\/downloads\/fraudlabspro_wc_stripe.zip<\/a>\u00a0is just a template for\u00a0<strong>stripe.min.js<\/strong>. Overwriting stripe.min.js with stripe.min.sample.js is not encouraged.<\/em><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Disclaimer of Warranty<\/strong><br>THE MODIFICATION IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FRAUDLABS PRO BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MODIFICATION OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Notice: It is recommended to use the latest\u00a0FraudLabs Pro for WooCommerce\u00a0plugin so that the credit card details can be captured [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_lmt_disableupdate":"","_lmt_disable":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[452,195],"doc_tag":[305,306,307,308,309,310,311,312,313,314],"class_list":["post-6937","docs","type-docs","status-publish","hentry","doc_category-payment-and-chargebacks","doc_category-woocommerce","doc_tag-fraud-detection","doc_tag-fraud-prevention","doc_tag-fraudlabspro","doc_tag-iovation","doc_tag-maxmind","doc_tag-reduce-chargebacks","doc_tag-riskified","doc_tag-sift-science","doc_tag-signifyd","doc_tag-whmcs"],"year_month":"2026-08","word_count":699,"total_views":"24","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Chris","author_nicename":"chris","author_url":"https:\/\/www.fraudlabspro.com\/resources\/author\/chris\/"},"doc_category_info":[{"term_name":"Payment &amp; Chargebacks","term_url":"https:\/\/www.fraudlabspro.com\/resources\/categories\/payment-and-chargebacks\/"},{"term_name":"WooCommerce","term_url":"https:\/\/www.fraudlabspro.com\/resources\/categories\/e-commerce-platforms\/woocommerce\/"}],"doc_tag_info":[{"term_name":"fraud detection","term_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials-tag\/fraud-detection\/"},{"term_name":"fraud prevention","term_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials-tag\/fraud-prevention\/"},{"term_name":"fraudlabspro","term_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials-tag\/fraudlabspro\/"},{"term_name":"iovation","term_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials-tag\/iovation\/"},{"term_name":"maxmind","term_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials-tag\/maxmind\/"},{"term_name":"reduce chargebacks","term_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials-tag\/reduce-chargebacks\/"},{"term_name":"riskified","term_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials-tag\/riskified\/"},{"term_name":"sift science","term_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials-tag\/sift-science\/"},{"term_name":"signifyd","term_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials-tag\/signifyd\/"},{"term_name":"whmcs","term_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials-tag\/whmcs\/"}],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to enable Credit Card Validation in WooCommerce for Stripe Gateway -<\/title>\n<meta name=\"description\" content=\"Credit card information is highly sensitive data and should be protected from unauthorized access. Let&#039;s enable the credit card validation in WooCommerce.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to enable Credit Card Validation in WooCommerce for Stripe Gateway -\" \/>\n<meta property=\"og:description\" content=\"Credit card information is highly sensitive data and should be protected from unauthorized access. Let&#039;s enable the credit card validation in WooCommerce.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-06T08:51:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout.png\" \/>\n\t<meta property=\"og:image:width\" content=\"628\" \/>\n\t<meta property=\"og:image:height\" content=\"434\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-enable-credit-card-validation-in-woocommerce\\\/\",\"url\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-enable-credit-card-validation-in-woocommerce\\\/\",\"name\":\"How to enable Credit Card Validation in WooCommerce for Stripe Gateway -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-enable-credit-card-validation-in-woocommerce\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-enable-credit-card-validation-in-woocommerce\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/woocommerce-disable-stripe-checkout.png\",\"datePublished\":\"2017-05-28T16:00:00+00:00\",\"dateModified\":\"2026-08-06T08:51:43+00:00\",\"description\":\"Credit card information is highly sensitive data and should be protected from unauthorized access. Let's enable the credit card validation in WooCommerce.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-enable-credit-card-validation-in-woocommerce\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-enable-credit-card-validation-in-woocommerce\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-enable-credit-card-validation-in-woocommerce\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/woocommerce-disable-stripe-checkout.png\",\"contentUrl\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/woocommerce-disable-stripe-checkout.png\",\"width\":628,\"height\":434},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-enable-credit-card-validation-in-woocommerce\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to enable Credit Card Validation in WooCommerce for Stripe Gateway\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/#website\",\"url\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/\",\"name\":\"\",\"description\":\"Resources About FraudLabs Pro Services\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to enable Credit Card Validation in WooCommerce for Stripe Gateway -","description":"Credit card information is highly sensitive data and should be protected from unauthorized access. Let's enable the credit card validation in WooCommerce.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/","og_locale":"en_US","og_type":"article","og_title":"How to enable Credit Card Validation in WooCommerce for Stripe Gateway -","og_description":"Credit card information is highly sensitive data and should be protected from unauthorized access. Let's enable the credit card validation in WooCommerce.","og_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/","article_modified_time":"2026-08-06T08:51:43+00:00","og_image":[{"width":628,"height":434,"url":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/","url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/","name":"How to enable Credit Card Validation in WooCommerce for Stripe Gateway -","isPartOf":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/#primaryimage"},"image":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout.png","datePublished":"2017-05-28T16:00:00+00:00","dateModified":"2026-08-06T08:51:43+00:00","description":"Credit card information is highly sensitive data and should be protected from unauthorized access. Let's enable the credit card validation in WooCommerce.","breadcrumb":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/#primaryimage","url":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout.png","contentUrl":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2017\/05\/woocommerce-disable-stripe-checkout.png","width":628,"height":434},{"@type":"BreadcrumbList","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-enable-credit-card-validation-in-woocommerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fraudlabspro.com\/resources\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/"},{"@type":"ListItem","position":3,"name":"How to enable Credit Card Validation in WooCommerce for Stripe Gateway"}]},{"@type":"WebSite","@id":"https:\/\/www.fraudlabspro.com\/resources\/#website","url":"https:\/\/www.fraudlabspro.com\/resources\/","name":"","description":"Resources About FraudLabs Pro Services","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fraudlabspro.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/docs\/6937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/comments?post=6937"}],"version-history":[{"count":3,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/docs\/6937\/revisions"}],"predecessor-version":[{"id":8229,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/docs\/6937\/revisions\/8229"}],"wp:attachment":[{"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/media?parent=6937"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/doc_category?post=6937"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=6937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}