Home API Credit Card Details API in PHP

Credit Card Details API in PHP


A credit card is a payment card issued to users (cardholders) to enable the cardholder to pay a merchant for goods and services based on the cardholder’s accrued debt (i.e., promise to the card issuer to pay them for the amounts plus the other agreed charges).[1] The card issuer (usually a bank or credit union) creates a revolving account and grants a line of credit to the cardholder, from which the cardholder can borrow money for payment to a merchant or as a cash advance. There are two credit card groups: consumer credit cards and business credit cards. Most cards are plastic, but some are metal cards (stainless steel, gold, palladium, titanium),[2][3] and a few gemstone-encrusted metal cards.

Now I will give you a way to get detailed information of a card number

1. Create curl script
$card_num = '421570xxxxxxxx'; //change to your cardnumber
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://lookup.binlist.net/$card_num");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,true);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
$result = curl_exec($ch);
$datacard = json_decode($result,true);

2. Call The result
$bank_name = $datacard['bank']['name'];
$card_type = $datacard['type'];
$card_brand = $datacard['brand'];
$card_country = $datacard['country']['name'];
$card_countryID = $datacard['country']['alpha2'];

Please leave a comment if you experience problems or errors

Install Hostname SSL in DirectAdmin

DirectAdmin is a graphical web-based web hosting control panel that allows website administration via a web browser. The software can Read more

SQLi Injection in ATOM CMS 2.0

The AtomCMS was created for learning purposes. The Digital Craft relies solely on funds from [donations] (http://www.thedigitalcraft.com), [YouTube ads] (http://youtube.com/thedigicraft), Read more

Previous articleWHM & cPanel 2083/2087 port not accessible
Next articleIndonesian state company job applicant data has been hacked


Please enter your comment!
Please enter your name here