{"id":7192,"date":"2024-12-27T00:00:00","date_gmt":"2024-12-26T16:00:00","guid":{"rendered":"https:\/\/www.fraudlabspro.com\/resources2\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/"},"modified":"2026-04-02T18:33:38","modified_gmt":"2026-04-02T10:33:38","password":"","slug":"how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto","status":"publish","type":"docs","link":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/","title":{"rendered":"How to use FraudLabs Pro API to validate order in Bagisto?"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"600\" src=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order.png\" alt=\"How to use FraudLabs Pro API to validate order in Bagisto\" class=\"wp-image-4720\" srcset=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order.png 1200w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order-300x150.png 300w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order-1024x512.png 1024w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order-768x384.png 768w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order-50x25.png 50w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order-920x460.png 920w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order-600x300.png 600w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order-320x160.png 320w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>Bagisto is an open source e-commerce framework that blends the power of Laravel and Vue.js. Bagisto aimed to help entrepreneurs to set up their online stores in a simple and efficient way. To cater the business\u00e2\u20ac\u2122s needs, whether it\u00e2\u20ac\u2122s big or small, Bagisto offers extensive features to the businessman. With its extensive community support and developer-friendly design, Bagisto is quickly becoming a go-to choice for modern e-commerce needs.<\/p>\n\n\n\n<p>In addition to the pre-built functionality and extensions, Bagisto also allowed users to extend its capabilities by using various methods. For example, users can create a custom listener to listen on a pre-defined event, and customize the functionality they want. However, Bagisto currently lacks a built-in security feature to protect the merchants from the potential frauds. As a result, they will be exposed to the financial loss due to the fraudulent activity. Fortunately, the FraudLabs Pro API provides a reliable solution, empowering merchants with robust fraud detection and prevention tools.<\/p>\n\n\n\n<p>In this tutorial, we are going to show how to call the FraudLabs Pro Screen Order API to validate the order in real-time, and also flag the order as fraud in the status so that the admin can be aware of the fraud order when reviewing the order history. If you are interested to get more information about the API, you can always refer to its <a href=\"https:\/\/www.fraudlabspro.com\/developer\/api\/screen-order\">documentation<\/a>.<\/p>\n\n\n\n<p>Before we get started, make sure that you have a FraudLabs Pro API key with you. If you don\u00e2\u20ac\u2122t, you can always <a href=\"https:\/\/www.fraudlabspro.com\/checkout-micro\">register<\/a> for a free API key to get started. This tutorial will also assume that you have already installed and set up the Bagisto in your machine. If you haven\u00e2\u20ac\u2122t, the simplest way to get it is to follow their installation instructions in their <a href=\"https:\/\/webkul.com\/blog\/laravel-ecommerce-website\/\">documentation<\/a> to get started.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to use FraudLabs Pro API in&nbsp;Bagisto<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to your Bagisto project in the command prompt, and run the following commands to generate two listeners files:<br><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">php artisan make:listener ValidateOrder\nphp artisan make:listener UpdateOrderStatus<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>After that, open the&nbsp;<em>app\/Listeners\/ValidateOrder.php<\/em> file, and replace the content with the following code:<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php\n\nnamespace AppListeners;\n\nuse IlluminateSupportFacadesLog;\nuse IlluminateSupportFacadesHttp;\n\nuse IlluminateSupportFacadesSession;\n\nclass ValidateOrder\n{\n    \/**\n     * Create the event listener.\n     *\/\n    public function __construct()\n    {\n        \/\/\n    }\n\n    \/**\n     * Handle the event.\n     *\/\n    public function handle($event): void\n    {\n        $apiKey = config('services.fraudlabspro.key');\n        $order_id = $event['cart_id'] ?? '';\n\n        \/\/ Prepare the payload\n        $payload = [\n            'key'               => $apiKey, \/\/ API Key from .env\n            'ip'                 => request()->ip(),\n            'email'              => $event['customer_email'] ?? '',\n            'first_name' => $event['customer_first_name'] ?? '',\n            'last_name'  => $event['customer_last_name'] ?? '',\n            'user_phone'    => $event['billing_address']['phone'] ?? '',\n            'bill_addr'    => $event['billing_address']['address'] ?? '',\n            'bill_city'       => $event['billing_address']['city'] ?? '',\n            'bill_state'      => $event['billing_address']['state'] ?? '',\n            'bill_zip_code'   => $event['billing_address']['postcode'] ?? '',\n            'bill_country'    => $event['billing_address']['country'] ?? '',\n            'ship_first_name'=> $event['shipping_address']['first_name'] ?? '',\n            'ship_last_name' => $event['shipping_address']['last_name'] ?? '',\n            'ship_addr'   => $event['shipping_address']['address'] ?? '',\n            'ship_city'      => $event['shipping_address']['city'] ?? '',\n            'ship_state'     => $event['shipping_address']['state'] ?? '',\n            'ship_zip_code'  => $event['shipping_address']['postcode'] ?? '',\n            'ship_country'   => $event['shipping_address']['country'] ?? '',\n            'amount'             => $event['grand_total'] ?? 0,\n            'quantity'             => $event['total_qty_ordered'] ?? 0,\n            'currency'           => $event['order_currency_code'] ?? 'USD',\n            'order_id'           => $order_id,\n            'user_agent'         => request()->userAgent(),\n        ];\n\n        \/\/ Send the payload to FraudLabs Pro API\n        $response = Http::post('https:\/\/api.fraudlabspro.com\/v2\/order\/screen', $payload);\n\n        if ($response->ok()) {\n            $validationResult = $response->json();\n\n            \/\/ Log the validation result\n            Log::info('FraudLabs Pro Validation Result:', $validationResult);\n\n            if (isset($validationResult['fraudlabspro_status']) &amp;&amp; $validationResult['fraudlabspro_status'] === 'REJECT') {\n                Log::warning('Fraud detected. Halting order processing.');\n                Session::put('fraud_detected', true);\n            } else {\n                Session::put('fraud_detected', false);\n            }\n        } else {\n            \/\/ Log any HTTP errors\n            Log::channel('custom')->error('FraudLabs Pro API Error', [\n                'status' => $response->status(),\n                'body'   => $response->body(),\n            ]);\n        }\n    }\n}\n<\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Then, open the&nbsp;<em>app\/Listeners\/UpdateOrderStatus.php<\/em> file, and replace the content with the following code:<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php\n\nnamespace AppListeners;\n\nuse IlluminateSupportFacadesLog;\nuse IlluminateSupportFacadesSession;\n\nclass UpdateOrderStatus\n{\n    \/**\n     * Create the event listener.\n     *\/\n    public function __construct()\n    {\n        \/\/\n    }\n\n    \/**\n     * Handle the event.\n     *\/\n    public function handle(object $event): void\n    {\n        if (Session::get('fraud_detected', false)) {\n            Log::warning('Skipping order processing because fraud was detected.');\n            $event->status = 'fraud';\n            $event->save(); \/\/ Persist changes to the database\n        }\n    }\n}\n<\/pre>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Next, open the&nbsp;<em>app\/Providers\/EventServiceProvider.php<\/em> file, and change the variable $listen to the following code:<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    protected $listen = [\n        'checkout.order.save.before' => [\n            AppListenersValidateOrder::class,\n        ],\n        'checkout.order.save.after' => [\n            AppListenersUpdateOrderStatus::class,\n        ],\n     ];<\/pre>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>Remember to save your FraudLabs Pro API key in your <em>.env<\/em> file like this: <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">FRAUDLABSPRO_API_KEY=YOUR_API_KEY<\/code>. Finally, open your&nbsp;<em>config\/services.php<\/em> file, and place the following code as the last order in the array:<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    'fraudlabspro' => [\n        'key' => env('FRAUDLABSPRO_API_KEY'),\n    ],<\/pre>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li>Now the API shall be set up in your e-commerce site, and once the API detected any fraud order, you shall see the order had been flagged as fraud in your admin dashboard, for example, here is how it may looks like:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"228\" src=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/screenshot-127_0_0_1_8000-2024_12_27-10_28_06-1024x228.png\" alt=\"\" class=\"wp-image-4717\" srcset=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/screenshot-127_0_0_1_8000-2024_12_27-10_28_06-1024x228.png 1024w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/screenshot-127_0_0_1_8000-2024_12_27-10_28_06-300x67.png 300w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/screenshot-127_0_0_1_8000-2024_12_27-10_28_06-768x171.png 768w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/screenshot-127_0_0_1_8000-2024_12_27-10_28_06-50x11.png 50w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/screenshot-127_0_0_1_8000-2024_12_27-10_28_06-920x205.png 920w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/screenshot-127_0_0_1_8000-2024_12_27-10_28_06-600x134.png 600w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/screenshot-127_0_0_1_8000-2024_12_27-10_28_06-320x71.png 320w, https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/screenshot-127_0_0_1_8000-2024_12_27-10_28_06.png 1477w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\">Fortify Your Business Against Fraud<\/h2>\n\n\n\n<p class=\"has-text-align-center\">Streamline your works with our fraud detection API now!<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-1 wp-block-buttons-is-layout-flex\"><div class=\"wp-block-button has-text-align-center\" style=\"width:100%;\"><a id=\"btn-click\" class=\"wp-block-button__link has-white-color has-text-color has-background wp-element-button\" href=\"https:\/\/www.fraudlabspro.com\/checkout-micro?utm_source=blog&#038;utm_medium=link&#038;utm_campaign=cta&#038;utm_term=footer-free\" style=\"background-color:#ed4747;margin:0px 10px 10px 10px;width:auto;\" target=\"_blank\" rel=\"noreferrer noopener\">Integrate API For Free Now<\/a><a id=\"btn-click\" class=\"wp-block-button__link has-text-color has-background wp-element-button\" href=\"https:\/\/www.fraudlabspro.com\/developer\/api\/screen-order?utm_source=blog&#038;utm_medium=link&#038;utm_campaign=cta&#038;utm_term=footer-devguide\" style=\"margin:0px 10px 10px 10px;color:#ed4747;border:1px solid #ed4747;background-color:#ffffff;width:auto;\" target=\"_blank\" rel=\"noreferrer noopener\">Explore Documentation<\/a><\/div><\/div>\n\n\n\n<div style=\"height:54px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bagisto is an open source e-commerce framework that blends the power of Laravel and Vue.js. Bagisto aimed to help entrepreneurs [&hellip;]<\/p>\n","protected":false},"author":1,"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":[185],"doc_tag":[],"class_list":["post-7192","docs","type-docs","status-publish","hentry","doc_category-developer-guide"],"year_month":"2026-05","word_count":823,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"FraudLabs Pro","author_nicename":"hexasoft","author_url":"https:\/\/www.fraudlabspro.com\/resources\/author\/hexasoft\/"},"doc_category_info":[{"term_name":"Developer Guide","term_url":"https:\/\/www.fraudlabspro.com\/resources\/categories\/developer-guide\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to use FraudLabs Pro API to validate order in Bagisto? -<\/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\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use FraudLabs Pro API to validate order in Bagisto? -\" \/>\n<meta property=\"og:description\" content=\"Bagisto is an open source e-commerce framework that blends the power of Laravel and Vue.js. Bagisto aimed to help entrepreneurs [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-02T10:33:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\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=\"4 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-use-fraudlabs-pro-api-to-validate-order-in-bagisto\\\/\",\"url\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\\\/\",\"name\":\"How to use FraudLabs Pro API to validate order in Bagisto? -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/flp-bagisto-validate-order.png\",\"datePublished\":\"2024-12-26T16:00:00+00:00\",\"dateModified\":\"2026-04-02T10:33:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/flp-bagisto-validate-order.png\",\"contentUrl\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/flp-bagisto-validate-order.png\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fraudlabspro.com\\\/resources\\\/tutorials\\\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\\\/#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 use FraudLabs Pro API to validate order in Bagisto?\"}]},{\"@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 use FraudLabs Pro API to validate order in Bagisto? -","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-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/","og_locale":"en_US","og_type":"article","og_title":"How to use FraudLabs Pro API to validate order in Bagisto? -","og_description":"Bagisto is an open source e-commerce framework that blends the power of Laravel and Vue.js. Bagisto aimed to help entrepreneurs [&hellip;]","og_url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/","article_modified_time":"2026-04-02T10:33:38+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/","url":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/","name":"How to use FraudLabs Pro API to validate order in Bagisto? -","isPartOf":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/#primaryimage"},"image":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order.png","datePublished":"2024-12-26T16:00:00+00:00","dateModified":"2026-04-02T10:33:38+00:00","breadcrumb":{"@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/#primaryimage","url":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order.png","contentUrl":"https:\/\/www.fraudlabspro.com\/resources\/wp-content\/uploads\/2024\/12\/flp-bagisto-validate-order.png","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/www.fraudlabspro.com\/resources\/tutorials\/how-to-use-fraudlabs-pro-api-to-validate-order-in-bagisto\/#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 use FraudLabs Pro API to validate order in Bagisto?"}]},{"@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\/7192","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/comments?post=7192"}],"version-history":[{"count":0,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/docs\/7192\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/media?parent=7192"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/doc_category?post=7192"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.fraudlabspro.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=7192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}