{"id":6944,"date":"2017-05-29T00:00:00","date_gmt":"2017-05-28T16:00:00","guid":{"rendered":"https:\/\/www.fraudlabspro.com\/resources2\/tutorials\/wepay-integration\/"},"modified":"2026-05-26T18:51:02","modified_gmt":"2026-05-26T10:51:02","password":"","slug":"wepay-integration","status":"publish","type":"docs","link":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/wepay-integration\/","title":{"rendered":"How to integrate FraudLabs Pro fraud detection with WePay payment"},"content":{"rendered":"<div class=\"portlet gren\">\n<div class=\"portlet-body\">\n<div>\n<p>Description: This tutorial demonstrates you on how to integrate FraudLabs Pro fraud detection into WePay payment.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"portlet gren\">\n<div class=\"portlet-title\">\n<div class=\"caption\"><i class=\"fa fa-file-code-o\"><\/i>PHP<\/div>\n<\/div>\n<div class=\"portlet-body\">\n<div>\n<p>Create a new table to store the transaction value of FraudLabs Pro and WePay payment processing. This table will be used during the settlement, void or refund process.<\/p>\n<div class=\"tab-content\">\n<div id=\"tab_php\" class=\"tab-pane fade active in\">\n<pre style=\"display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; color: #333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 4px;\">CREATE TABLE `fraudlabs_pro` (\n\t`flp_transaction_id` CHAR(15) NOT NULL,\n\t`flp_status` VARCHAR(10) NOT NULL,\n\t`wepay_checkout_id` VARCHAR(30) NOT NULL,\n\tPRIMARY KEY (`flp_transaction_id`)\n)\nCOLLATE='utf8_general_ci'\nENGINE=MyISAM;<\/pre>\n<\/div>\n<\/div>\n<p>Download FraudLabs Pro PHP class from&nbsp;<a href=\"https:\/\/github.com\/fraudlabspro\/fraudlabspro-php\/releases\">https:\/\/github.com\/fraudlabspro\/fraudlabspro-php\/releases<\/a><\/p>\n<p>Integrate FraudLabs Pro fraud detection logic with your WePay code. This code will perform a simple validation check of one credit card purchase and perform the appropriate action based on the fraud validation result.<\/p>\n<div class=\"tab-content\">\n<div id=\"tab_php\" class=\"tab-pane fade active in\">\n<pre style=\"display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; color: #333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 4px;\">\/\/ Include FraudLabs Pro library\nrequire_once 'PATH_TO_FRAUDLABSPRO\/lib\/FraudLabsPro.php';\n\n\/\/ Include WePay library\nrequire_once 'PATH_TO_WEPAY\/lib\/wepay.php';\n\n\/\/ change to useProduction for live environments\nWepay::useStaging('your_wepay_client_id', 'your_wepay_client_secret');\n$wepay = new WePay('your_wepay_access_token');\n\n\/\/ Create a free user account at http:\/\/www.fraudlabspro.com, if you do not have one\nFraudLabsProConfiguration::apiKey('your_fraudlabspro_api_key');\n\n\/\/ Check this transaction for possible fraud. FraudLabs Pro support comprehensive validation check,\n\/\/ and for this example, we only perform the IP address, BIN and billing country validation.\n\/\/ For complete validation, please check our developer page at http:\/\/www.fraudlabspro.com\/developer\n$orderDetails = [\n\t'order'\t\t=&gt; [\n\t\t'amount'\t=&gt; $_POST['amount'],\n\t\t'paymentMethod'\t=&gt; FraudLabsProOrder::CREDIT_CARD,\n\t],\n\t'card'\t\t=&gt; [\n\t\t'number'\t=&gt; $_POST['card'],\n\t],\n\t'billing'\t=&gt; [\n\t\t'city'\t\t=&gt; $_POST['city'],\n\t\t'state'\t\t=&gt; $_POST['state'],\n\t\t'postcode'\t=&gt; $_POST['zip'],\n\t\t'country'\t=&gt; $_POST['country'],\n\t],\n];\n\n\/\/ Sends the order details to FraudLabs Pro\n$fraudResult = FraudLabsProOrder::validate($orderDetails);\n\n\/\/ This transaction is legitimate, let's submit to WePay\nif($fraudResult-&gt;fraudlabspro_status == 'APPROVE'){\n\ttry{\n\t\t$response = $wepay-&gt;request('credit_card\/create', array(\n\t\t\t'client_id'         =&gt; 'your_wepay_client_id',\n\t\t\t'user_name'         =&gt; $_POST['name'],\n\t\t\t'email'             =&gt; $_POST['emailAddress'],\n\t\t\t'cc_number'         =&gt; $_POST['card'],\n\t\t\t'cvv'               =&gt; $_POST['cvv'],\n\t\t\t'expiration_month'  =&gt; $_POST['month'],\n\t\t\t'expiration_year'   =&gt; $_POST['year'],\n\t\t\t'address'           =&gt; array(\n\t\t\t\t'address1'  =&gt; $_POST['address'],\n\t\t\t\t'city'      =&gt; $_POST['city'],\n\t\t\t\t'state'     =&gt; $_POST['state'],\n\t\t\t\t'country'   =&gt; $_POST['country'],\n\t\t\t\t'zip'       =&gt; $_POST['zip']\n\t\t\t)\n\t\t));\n\n\t\t\/\/ Create and capture this transaction\n\t\t$response = $wepay-&gt;request('checkout\/create', array(\n\t\t\t'account_id'            =&gt; 'account_id',\n\t\t\t'short_description'     =&gt; 'Sale for item XX',\n\t\t\t'type'                  =&gt; 'SERVICE',\n\t\t\t'amount'                =&gt; $_POST['amount'],\n\t\t\t'auto_capture'          =&gt; true,\n\t\t\t'payment_method_id'     =&gt; $response-&gt;credit_card_id,\n\t\t\t'payment_method_type'   =&gt; 'credit_card'\n\t\t\t)\n\t\t));\n\t} catch(WePayRequestException $e) {\n\t\t\/\/ The card has been declined\n\t}\n}\n\n\/\/ Transaction has been rejected by FraudLabs Pro based on your custom validation rules.\nelseif($fraudResult-&gt;fraudlabspro_status == 'REJECT'){\n\t\/*\n\tDo something here, try contact the customer for verification\n\t*\/\n}\n\n\/\/ Transaction is marked for a manual review by FraudLabs Pro based on your custom validation rules.\nelseif($fraudResult-&gt;fraudlabspro_status == 'REVIEW'){\n\t\/\/ Authorize this order with WePay first\n\ttry{\n\t\t$response = $wepay-&gt;request('credit_card\/create', array(\n\t\t\t'client_id'         =&gt; 'your_wepay_client_id',\n\t\t\t'user_name'         =&gt; $_POST['name'],\n\t\t\t'email'             =&gt; $_POST['emailAddress'],\n\t\t\t'cc_number'         =&gt; $_POST['card'],\n\t\t\t'cvv'               =&gt; $_POST['cvv'],\n\t\t\t'expiration_month'  =&gt; $_POST['month'],\n\t\t\t'expiration_year'   =&gt; $_POST['year'],\n\t\t\t'address'           =&gt; array(\n\t\t\t\t'address1'  =&gt; $_POST['address'],\n\t\t\t\t'city'      =&gt; $_POST['city'],\n\t\t\t\t'state'     =&gt; $_POST['state'],\n\t\t\t\t'country'   =&gt; $_POST['country'],\n\t\t\t\t'zip'       =&gt; $_POST['zip']\n\t\t\t)\n\t\t));\n\n\t\t\/\/ Create this transaction but do not capture yet\n\t\t$response = $wepay-&gt;request('checkout\/create', array(\n\t\t\t'account_id'            =&gt; 'account_id',\n\t\t\t'short_description'     =&gt; 'Sale for item XX',\n\t\t\t'type'                  =&gt; 'SERVICE',\n\t\t\t'amount'                =&gt; $_POST['amount'],\n\t\t\t'auto_capture'          =&gt; false,\n\t\t\t'payment_method_id'     =&gt; $response-&gt;credit_card_id,\n\t\t\t'payment_method_type'   =&gt; 'credit_card'\n\t\t));\n\n\t\ttry{\n\t\t\t\/\/ Initial MySQL connection\n\t\t\t$db = new PDO('mysql:host=your_database_host;dbname=your_database_name;charset=utf8', 'your_database_user', 'your_database_password');\n\t\t\t$db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n\t\t\t\/\/ Store the transaction information for decision making\n\t\t\t$st = $db-&gt;prepare('INSERT INTO `fraudlabs_pro` VALUES (:flpId, :flpStatus, :wepayId)');\n\t\t\t$st-&gt;execute(array(\n\t\t\t\t':flpId'=&gt;$fraudResult-&gt;fraudlabspro_id,\n\t\t\t\t':flpStatus'=&gt;$fraudResult-&gt;fraudlabspro_status,\n\t\t\t\t':wepayId'=&gt;$response-&gt;checkout_id\n\t\t\t));\n\t\t}\n\t\tcatch(PDOException $e){\n\t\t\t\/\/ MySQL error\n\t\t\tdie($e-&gt;getFile() . ':' . $e-&gt;getLine() . ' ' . $e-&gt;getMessage());\n\t\t}\n\t} catch(WePayRequestException $e) {\n\t\t\/\/ The card has been declined\n\t}\n}<\/pre>\n<\/div>\n<\/div>\n<p>Now, we are going to create a callback page to receive the review action, APPROVE or REJECT, performed by the merchant.<\/p>\n<p>Note: You need to configure the callback URL at the FraudLabs Pro merchant area-&gt;settings page. It has to be pointed to the location where you hosted this &#8220;fraudlabspro-callback.php&#8221; file. Below is the sample code for fraudlabspro-callback.php<\/p>\n<div class=\"tab-content\">\n<div id=\"tab_php\" class=\"tab-pane fade active in\">\n<pre style=\"display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; color: #333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 4px;\">$id = (isset($_POST['id'])) ? $_POST['id'] : '';\n$action = (isset($_POST['action'])) ? $_POST['action'] : '';\n\nif($id &amp;&amp; in_array($action, array('APPROVE', 'REJECT'))){\n\ttry{\n\t\t\/\/ Initial MySQL connection\n\t\t$db = new PDO('mysql:host=your_database_host;dbname=your_database_name;charset=utf8', 'your_database_user', 'your_database_password');\n\t\t$db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n\t\t\/\/ Get the WePay Transaction ID\n\t\t$st = $db-&gt;prepare('SELECT * FROM `fraudlabs_pro` WHERE `flp_transaction_id`=:flpId AND `flp_status`='REVIEW'');\n\t\t$st-&gt;execute(array(\n\t\t\t':flpId'=&gt;$id\n\t\t));\n\n\t\tif($st-&gt;rowCount() == 1){\n\t\t\t$row = $st-&gt;fetch(PDO::FETCH_ASSOC);\n\n\t\t\trequire_once 'PATH_TO_WEPAY\/lib\/wepay.php';\n\n\t\t\t\/\/ change to useProduction for live environments\n\t\t\tWepay::useStaging('your_wepay_client_id', 'your_wepay_client_secret');\n\t\t\t$wepay = new WePay('your_wepay_access_token');\n\n\t\t\tif($action == 'REJECT'){\n\t\t\t\t\/\/ Merchant rejected the order. Cancel the transaction in BluePay\n\t\t\t\t$response = $wepay-&gt;request('checkout\/cancel', array(\n\t\t\t\t\t'checkout_id'           =&gt; $row['wepay_checkout_id'],\n\t\t\t\t\t'cancel_reason'         =&gt; 'Possible fraud'\n\t\t\t\t));\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\/\/ Merchant approved the order. Capture the transaction in BluePay\n\t\t\t\t$response = $wepay-&gt;request('checkout\/capture', array(\n\t\t\t\t\t'checkout_id'           =&gt; $row['wepay_checkout_id']\n\t\t\t\t));\n\t\t\t}\n\n\t\t\t\/\/ Update database\n\t\t\t$st = $db-&gt;prepare('UPDATE `fraudlabs_pro` SET `flp_status`=:action WHERE `flp_transaction_id`=:flpId');\n\t\t\t$st-&gt;execute(array(\n\t\t\t\t':flpId'=&gt;$id,\n\t\t\t\t':action'=&gt;$action\n\t\t\t));\n\t\t}\n\t}\n\tcatch(PDOException $e){\n\t\t\/\/ MySQL error\n\t\tdie($e-&gt;getFile() . ':' . $e-&gt;getLine() . ' ' . $e-&gt;getMessage());\n\t}\n}<\/pre>\n<\/div>\n<\/div>\n<p>If there is a need to issue a refund of a settled transaction, below is the sample code of how to accomplish it.<\/p>\n<div class=\"tab-content\">\n<div id=\"tab_php\" class=\"tab-pane fade active in\">\n<pre style=\"display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; color: #333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 4px;\">try{\n\t\/\/ Initial MySQL connection\n\t$db = new PDO('mysql:host=your_database_host;dbname=your_database_name;charset=utf8', 'your_database_user', 'your_database_password');\n\t$db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n\t\/\/ Get the WePay transaction ID based on the FraudLabs Pro ID\n\t$st = $db-&gt;prepare('SELECT * FROM `fraudlabs_pro` WHERE `flp_transaction_id`=:flpId');\n\t$st-&gt;execute(array(\n\t\t':flpId'=&gt;$_POST['flpId']\n\t));\n\n\tif($st-&gt;rowCount() == 1){\n\t\t$row = $st-&gt;fetch(PDO::FETCH_ASSOC);\n\n\t\t\/\/ change to useProduction for live environments\n\t\tWepay::useStaging('your_wepay_client_id', 'your_wepay_client_secret');\n\t\t$wepay = new WePay('your_wepay_access_token');\n\n\t\t$response = $wepay-&gt;request('checkout\/refund', array(\n\t\t\t'checkout_id'           =&gt; $row['wepay_checkout_id'],\n\t\t\t'refund_reason'         =&gt; 'your_refund_reason'\n\t\t);\n\n\n\t\t\/\/ Update database\n\t\t$st = $db-&gt;prepare('UPDATE `fraudlabs_pro` SET `flp_status`='REFUNDED' WHERE `flp_transaction_id`=:flpId');\n\t\t$st-&gt;execute(array(\n\t\t\t':flpId'=&gt;$_POST['flpId']\n\t\t));\n\t}\n}\ncatch(PDOException $e){\n\t\/\/ MySQL error\n\tdie($e-&gt;getFile() . ':' . $e-&gt;getLine() . ' ' . $e-&gt;getMessage());\n}<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description: This tutorial demonstrates you on how to integrate FraudLabs Pro fraud detection into WePay payment. PHP Create a new [&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":[456],"doc_tag":[305,306,307,308,309,310,311,312,313,314],"class_list":["post-6944","docs","type-docs","status-publish","hentry","doc_category-payment-gateway","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-06","word_count":1189,"total_views":0,"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 Gateway","term_url":"https:\/\/www.fraudlabspro.com\/resources\/categories\/payment-and-chargebacks\/payment-gateway\/"}],"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 v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to integrate FraudLabs Pro fraud detection with WePay payment -<\/title>\n<meta name=\"description\" content=\"This tutorial demonstrates you on how to integrate FraudLabs Pro fraud detection into WePay payment.\" \/>\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\/wepay-integration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to integrate FraudLabs Pro fraud detection with WePay payment -\" \/>\n<meta property=\"og:description\" content=\"This tutorial demonstrates you on how to integrate FraudLabs Pro fraud detection into WePay payment.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/wepay-integration\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-26T10:51:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2018\/12\/banner-articles-and-tutorials.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"315\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/wepay-integration\\\/\",\"url\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/wepay-integration\\\/\",\"name\":\"How to integrate FraudLabs Pro fraud detection with WePay payment -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/#website\"},\"datePublished\":\"2017-05-28T16:00:00+00:00\",\"dateModified\":\"2026-05-26T10:51:02+00:00\",\"description\":\"This tutorial demonstrates you on how to integrate FraudLabs Pro fraud detection into WePay payment.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/wepay-integration\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/wepay-integration\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/wepay-integration\\\/#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 integrate FraudLabs Pro fraud detection with WePay payment\"}]},{\"@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 integrate FraudLabs Pro fraud detection with WePay payment -","description":"This tutorial demonstrates you on how to integrate FraudLabs Pro fraud detection into WePay payment.","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\/wepay-integration\/","og_locale":"en_US","og_type":"article","og_title":"How to integrate FraudLabs Pro fraud detection with WePay payment -","og_description":"This tutorial demonstrates you on how to integrate FraudLabs Pro fraud detection into WePay payment.","og_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/wepay-integration\/","article_modified_time":"2026-05-26T10:51:02+00:00","og_image":[{"width":600,"height":315,"url":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2018\/12\/banner-articles-and-tutorials.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/wepay-integration\/","url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/wepay-integration\/","name":"How to integrate FraudLabs Pro fraud detection with WePay payment -","isPartOf":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/#website"},"datePublished":"2017-05-28T16:00:00+00:00","dateModified":"2026-05-26T10:51:02+00:00","description":"This tutorial demonstrates you on how to integrate FraudLabs Pro fraud detection into WePay payment.","breadcrumb":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/wepay-integration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fraudlabspro.com\/resources\/tutorials\/wepay-integration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/wepay-integration\/#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 integrate FraudLabs Pro fraud detection with WePay payment"}]},{"@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\/6944","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=6944"}],"version-history":[{"count":1,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/docs\/6944\/revisions"}],"predecessor-version":[{"id":7525,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/docs\/6944\/revisions\/7525"}],"wp:attachment":[{"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/media?parent=6944"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/doc_category?post=6944"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=6944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}