PHP Classes

File: feedback_status_example.php

Recommend this page to a friend!
  Classes of Chris   PHP Credit Card Fraud Detection   feedback_status_example.php   Download  
File: feedback_status_example.php
Role: Example script
Content type: text/plain
Description: example code to feedback status
Class: PHP Credit Card Fraud Detection
Detect if a card payment is fraud using Fraudlabs
Author: By
Last change:
Date: 9 years ago
Size: 776 bytes


Class file image Download
     * Example to do a feedback for a validated result
    // Create FraudLabs Pro object
    // Note: You need to enter the API key during the instantiation
    // If you do not have the api key, register it free at
$flp = new FraudLabsPro('<API_KEY>');
//Execute the fraud check result. This assume you have previous done the validation check
    //and obtained the FraudLabs Pro Id
    // Invoke feedback status
$result = $flp->feedbackOrder('<FRAUDLABS_PRO_ID>', 'REJECT');
//Print the transaction status. Empty string means success.
//clear the object