Skip to main content

Card Generator is a simple tool for generating test/sample card numbers. It returns a list of card numbers for testing.

Project description

Card Generator API

Card Generator is a simple tool for generating test/sample card numbers. It returns a list of card numbers for testing.

Build Status Code Climate Prod Ready

This is a Python API Wrapper for the Card Generator API


Installation

pip install apiverve-cardgenerator

Configuration

Before using the cardgenerator API client, you have to setup your account and obtain your API Key.
You can get it by signing up at https://apiverve.com


Usage

The Card Generator API documentation is found here: https://docs.apiverve.com/api/cardgenerator.
You can find parameters, example responses, and status codes documented here.

Setup

# Import the client module
from apiverve_cardgenerator.apiClient import CardgeneratorAPIClient

# Initialize the client with your APIVerve API key
api = CardgeneratorAPIClient("[YOUR_API_KEY]")

Perform Request

Using the API client, you can perform requests to the API.

Define Query
query = { "brand": "visa",  "count": 5 }
Simple Request
# Make a request to the API
result = api.execute(query)

# Print the result
print(result)
Example Response
{
  "status": "ok",
  "error": null,
  "data": {
    "brand": "visa",
    "count": 5,
    "cards": [
      {
        "cvv": 379,
        "issuer": "BENSENVILLE COMMUNITY C.U.",
        "number": "4476094366847366",
        "expiration": "2029-09-01T09:27:23.332Z",
        "brand": "visa",
        "number_alt": "4476 0943 6684 7366"
      },
      {
        "cvv": 990,
        "issuer": "FIRST NATIONAL BANK AND TRUST COMPANY",
        "number": "4454093186848436",
        "expiration": "2029-09-01T09:27:23.336Z",
        "brand": "visa",
        "number_alt": "4454 0931 8684 8436"
      },
      {
        "cvv": 499,
        "issuer": "MOUNTAIN VALLEY BANK, N.A.",
        "number": "4869307661362617",
        "expiration": "2029-09-01T09:27:23.338Z",
        "brand": "visa",
        "number_alt": "4869 3076 6136 2617"
      },
      {
        "cvv": 123,
        "issuer": "BOC CREDIT CARD (INTERNATIONAL), LTD.",
        "number": "4336478909204179",
        "expiration": "2029-09-01T09:27:23.34Z",
        "brand": "visa",
        "number_alt": "4336 4789 0920 4179"
      },
      {
        "cvv": 176,
        "issuer": "FOUNDATION BANK",
        "number": "4080598892262831",
        "expiration": "2029-09-01T09:27:23.343Z",
        "brand": "visa",
        "number_alt": "4080 5988 9226 2831"
      }
    ],
    "owner": {
      "name": "June Marks",
      "address": {
        "street": "46303 Schmitt Flats",
        "city": "North Frida",
        "state": "Arkansas",
        "zipCode": "53481-0640"
      }
    }
  },
  "code": 200
}

Customer Support

Need any assistance? Get in touch with Customer Support.


Updates

Stay up to date by following @apiverveHQ on Twitter.


Legal

All usage of the APIVerve website, API, and services is subject to the APIVerve Terms of Service and all legal documents and agreements.


License

Licensed under the The MIT License (MIT)

Copyright (©) 2024 APIVerve, and Evlar LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apiverve_cardgenerator-1.1.7.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apiverve_cardgenerator-1.1.7-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file apiverve_cardgenerator-1.1.7.tar.gz.

File metadata

  • Download URL: apiverve_cardgenerator-1.1.7.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for apiverve_cardgenerator-1.1.7.tar.gz
Algorithm Hash digest
SHA256 32cac43031a5b6535a3228df9dbbad8fc3851d8b82e4e2e3ab47e3b363f8c2a2
MD5 a787f3a7c0150d3e747c59bc3bba5306
BLAKE2b-256 3b91eafd41dad336de252f5c0fe2fae2efb0e04e38a2a2edfd13e58d5d71d739

See more details on using hashes here.

File details

Details for the file apiverve_cardgenerator-1.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for apiverve_cardgenerator-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b0eb07d86b3d607feeddb5d68700a4cc0db2ffa3c806719b649fb46d58f76233
MD5 a6330ae254f190d4097d92fcddecbbf8
BLAKE2b-256 c27a0942b9db771f7d6b6e969efb98a1fd31a01c3568b9c7c6d58bead5c90b3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page