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.5.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for apiverve_cardgenerator-1.1.5.tar.gz
Algorithm Hash digest
SHA256 85e6fdc54028892a4694071465b8d5b35eef00933086f12dc380adf49a65c7c0
MD5 62ea1a8413e7893e37663c36f4e18f42
BLAKE2b-256 bc2f2530bf8064f63f0b722ae4bbf2325d9a43cb1aab77e3388dca609a3decb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apiverve_cardgenerator-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c256a716ce4a32e550a3adc50a93efa453ba80f6547dce46aace79d66f8096c2
MD5 ff9cb1782077696a155f526369c086c9
BLAKE2b-256 9dab60eb198d319b9663da2862669d9efdb7ec0c6b038370da1720f3d28df648

See more details on using hashes here.

Supported by

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