PHP Classes
elePHPant
Icontem

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: 5 years ago
Size: 776 bytes
 

 

Contents

Class file image Download
<?php
   
/*******************************
     * Example to do a feedback for a validated result
     *
     *******************************/
    
   
require('FraudLabsPro.class.php');
   
   
///////////////////////////////
    // 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 http://www.fraudlabspro.com
   
$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.
   
print_r($result);
   
   
//clear the object
   
unset($flp);
?>