{"id":6941,"date":"2017-05-29T00:00:00","date_gmt":"2017-05-28T16:00:00","guid":{"rendered":"https:\/\/www.fraudlabspro.com\/resources2\/tutorials\/braintree-integration\/"},"modified":"2026-04-02T18:32:38","modified_gmt":"2026-04-02T10:32:38","password":"","slug":"braintree-integration","status":"publish","type":"docs","link":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/braintree-integration\/","title":{"rendered":"How to integrate FraudLabs Pro fraud detection with BrainTree payment"},"content":{"rendered":"<div class=\"portlet gren\">\n<div class=\"portlet-body\">\n<div>\n<p>Description: This tutorial demonstrate you on how to integrate FraudLabs Pro fraud detection into BrainTree 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 BrainTree 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`braintree_transaction_id` VARCHAR(10) 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 <span style=\"text-decoration: underline; color: #e26a6a;\"><a href=\"https:\/\/github.com\/fraudlabspro\/fraudlabspro-php\/releases\"> https:\/\/github.com\/fraudlabspro\/fraudlabspro-php\/releases <\/a><\/span><\/p>\n<p>Integrate FraudLabs Pro fraud detection logic with your BrainTree 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 BrainTree library\nrequire_once 'PATH_TO_BRAINTREE\/lib\/Braintree.php';\n\n\/\/ We show the example code using the SandBox environment.\nBraintree_Configuration::environment('sandbox');\nBraintree_Configuration::merchantId('use_your_merchant_id');\nBraintree_Configuration::publicKey('use_your_public_key');\nBraintree_Configuration::privateKey('use_your_private_key');\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['number'],\n\t],\n\t'billing'\t=&gt; [\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 Braintree\nif($fraudResult-&gt;fraudlabspro_status == 'APPROVE'){\n\t\/\/ Submit for settlement\n\t$result = Braintree_Transaction::sale(array(\n\t\t'amount' =&gt; $_POST['amount'],\n\t\t'creditCard' =&gt; array(\n\t\t\t'number' =&gt; $_POST['number'],\n\t\t\t'cvv' =&gt; $_POST['cvv'],\n\t\t\t'expirationMonth' =&gt; $_POST['month'],\n\t\t\t'expirationYear' =&gt; $_POST['year']\n\t\t),\n\t\t'options' =&gt; array(\n\t\t\t'submitForSettlement' =&gt; true\n\t\t)\n\t));\n\n\tif ($result-&gt;success) {\n\t\techo(\"Success! Transaction ID: \" . $result-&gt;transaction-&gt;id);\n\t} else if ($result-&gt;transaction) {\n\t\techo(\"Error: \" . $result-&gt;message);\n\t\techo(\"\n\");\n\t\techo(\"Code: \" . $result-&gt;transaction-&gt;processorResponseCode);\n\t} else {\n\t\techo(\"Validation errors:\n\");\n\t\tforeach (($result-&gt;errors-&gt;deepAll()) as $error) {\n\t\t\techo(\"- \" . $error-&gt;message . \"\n\");\n\t\t}\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 BrainTree, but no settlement\n\t$result = Braintree_Transaction::sale(array(\n\t\t'amount' =&gt; $_POST['amount'],\n\t\t'creditCard' =&gt; array(\n\t\t\t'number' =&gt; $_POST['number'],\n\t\t\t'cvv' =&gt; $_POST['cvv'],\n\t\t\t'expirationMonth' =&gt; $_POST['month'],\n\t\t\t'expirationYear' =&gt; $_POST['year']\n\t\t),\n\t\t'options' =&gt; array(\n\t\t\t'submitForSettlement' =&gt; false\n\t\t)\n\t));\n\n\tif ($result-&gt;success) {\n\t\techo(\"Success! Transaction ID: \" . $result-&gt;transaction-&gt;id);\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, :braintreeId)');\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':braintreeId'=&gt;$result-&gt;transaction-&gt;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} else if ($result-&gt;transaction) {\n\t\techo(\"Error: \" . $result-&gt;message);\n\t\techo(\"\n\");\n\t\techo(\"Code: \" . $result-&gt;transaction-&gt;processorResponseCode);\n\t} else {\n\t\techo(\"Validation errors:\n\");\n\t\tforeach (($result-&gt;errors-&gt;deepAll()) as $error) {\n\t\t\techo(\"- \" . $error-&gt;message . \"\n\");\n\t\t}\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 BrainTree 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_BRAINTREE\/lib\/Braintree.php';\n\n\t\t\tBraintree_Configuration::environment('sandbox');\n\t\t\tBraintree_Configuration::merchantId('use_your_merchant_id');\n\t\t\tBraintree_Configuration::publicKey('use_your_public_key');\n\t\t\tBraintree_Configuration::privateKey('use_your_private_key');\n\n\t\t\tif($action == 'REJECT'){\n\t\t\t\t\/\/ Merchant rejected the order. Void the transaction in Braintree\n\t\t\t\tBraintree_Transaction::void($row['braintree_transaction_id']);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\/\/ Merchant approved the order. Submit for settlement\n\t\t\t\tBraintree_Transaction::submitForSettlement($row['braintree_transaction_id']);\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 BrainTree 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\trequire_once 'PATH_TO_BRAINTREE\/lib\/Braintree.php';\n\n\t\tBraintree_Configuration::environment('sandbox');\n\t\tBraintree_Configuration::merchantId('use_your_merchant_id');\n\t\tBraintree_Configuration::publicKey('use_your_public_key');\n\t\tBraintree_Configuration::privateKey('use_your_private_key');\n\n\t\t\/\/ Issue the refund\n\t\t$result = Braintree_Transaction::refund($row['braintree_transaction_id']);\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 demonstrate you on how to integrate FraudLabs Pro fraud detection into BrainTree 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":[212],"doc_tag":[305,306,307,308,309,310,311,312,313,314],"class_list":["post-6941","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-05","word_count":1084,"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-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.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to integrate FraudLabs Pro fraud detection with BrainTree payment -<\/title>\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\/braintree-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 BrainTree payment -\" \/>\n<meta property=\"og:description\" content=\"Description: This tutorial demonstrate you on how to integrate FraudLabs Pro fraud detection into BrainTree payment. PHP Create a new [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/braintree-integration\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-02T10:32:38+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=\"5 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\\\/braintree-integration\\\/\",\"url\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/braintree-integration\\\/\",\"name\":\"How to integrate FraudLabs Pro fraud detection with BrainTree payment -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/#website\"},\"datePublished\":\"2017-05-28T16:00:00+00:00\",\"dateModified\":\"2026-04-02T10:32:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/braintree-integration\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/braintree-integration\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/braintree-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 BrainTree 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 BrainTree 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\/braintree-integration\/","og_locale":"en_US","og_type":"article","og_title":"How to integrate FraudLabs Pro fraud detection with BrainTree payment -","og_description":"Description: This tutorial demonstrate you on how to integrate FraudLabs Pro fraud detection into BrainTree payment. PHP Create a new [&hellip;]","og_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/braintree-integration\/","article_modified_time":"2026-04-02T10:32:38+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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/braintree-integration\/","url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/braintree-integration\/","name":"How to integrate FraudLabs Pro fraud detection with BrainTree payment -","isPartOf":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/#website"},"datePublished":"2017-05-28T16:00:00+00:00","dateModified":"2026-04-02T10:32:38+00:00","breadcrumb":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/braintree-integration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fraudlabspro.com\/resources\/tutorials\/braintree-integration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/braintree-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 BrainTree 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\/6941","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=6941"}],"version-history":[{"count":0,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/docs\/6941\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/media?parent=6941"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/doc_category?post=6941"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=6941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}