Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Screens credit card transactions frauds

    PHP Code:
    <?php
    $apiKey 
    'Enter_License_Key';
    $params['format']           = 'json';
    $params['ip']               = $_SERVER['REMOTE_ADDR'];
    $params['bill_city']        = 'Cleveland';
    $params['bill_state']       = 'OH';
    $params['bill_zip_code']    = '44115';
    $params['bill_country']     = 'US';
    $params['ship_addr']        = '4987 Bingamon Road';
    $params['ship_city']        = 'Cleveland';
    $params['ship_state']       = 'OH';
    $params['ship_zip_code']    = '44115';
    $params['ship_country']     = 'US';
    $params['email_domain']     = 'gmail.com';
    $params['phone']            = '440-5551961';
    $params['email_hash']       = fraudlabspro_hash('user@gmail.com');
    $params['username_hash']    = fraudlabspro_hash('kevinowen');
    $params['password_hash']    = fraudlabspro_hash('3X2hd8cWNw9q');
    $params['bin_no']           = '558265';
    $params['bank_name']        = 'Bank of Ocean View';
    $params['bank_phone']       = '212-500-2489';
    $params['card_hash']        = fraudlabspro_hash('5582657189029269');
    $params['avs_result']               = 'Y';
    $params['cvv_result']               = 'M';
    $params['user_order_id']    = '7893';
    $params['amount']           = '99.95';
    $params['quantity']         = '1';
    $params['department']       = 'Online Store';
    $params['payment_mode']     = 'creditcard';
      
    $query '';
      
    foreach(
    $params as $key=>$value){
        
    $query .= '&' $key '=' rawurlencode($value);
    }
      
    $try 0;
    do {
        
    $result file_get_contents('https://api.fraudlabspro.com/v1/order/screen?key=' $apiKey $query);
    } while(!
    $result && $rty++ < 3);
      
    $data json_decode($result);
      
    echo 
    '<pre>';
    print_r($data);
    echo 
    '</pre>';
      
    function 
    fraudlabspro_hash($s){
        
    $hash 'fraudlabspro_' $s;
        for(
    $i=0$i<65536$i++) $hash sha1('fraudlabspro_' $hash);
      
        return 
    $hash;
    }
    ?>
    Last edited by Inigoesdr; 03-13-2013 at 04:40 AM.

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Reference: http://fraudlabspro.com/developer/sa...-order-api/php

    Note that this sample requires an account with fraudlabspro.com and another library or file that isn't mentioned here. There are functions used(e.g. "fraudlabspro_hash()") that aren't declared or part of the PHP core.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •