This application simulates Visa card issuance, validation, and transaction processing with a RESTful JSON API. All responses mimic real Visa API formats.
POST /auth.php require a Bearer token. Obtain a token by calling POST /auth.php with credentials, then include Authorization: Bearer {token} in the header.
virtual_classic (BIN: 40600201)virtual_gold (BIN: 40600202)virtual_platinum (BIN: 40600203)physical_classic (BIN: 40600211)physical_gold (BIN: 40600212)physical_platinum (BIN: 40600213)POST /auth.php
{
"username": "your_api_username",
"password": "your_api_password"
}
POST /issue.php
Automatic generation (based on card type):
{
"card_type": "virtual_classic"
}
Register with provided full details:
{
"card_number": "4060020112345678",
"cvv2": "123",
"exp_date": "05/2029",
"card_type": "virtual_classic" // optional
}
POST /validate.php
{
"card_number": "4060020112345678",
"cvv2": "123",
"exp_date": "05/2029"
}
GET /cards_list.php?page=1&limit=20
POST /get_card.php
{
"card_number": "4060020112345678"
}
POST /block.php
{
"card_number": "4060020112345678"
}
POST /unblock.php
POST /authorize.php
{
"card_number": "4060020112345678",
"amount": "150.00",
"currency": "USD"
}
POST /capture.php
{
"transaction_identifier": "trx_..."
}
POST /refund.php
{
"card_number": "4060020112345678",
"amount": "50.00"
}
POST /void.php
{
"transaction_identifier": "trx_..."
}