Skip to main content

Unofficial Python client library for CardPointe Gateway and CardSecure APIs.

Project description

cardpointe-api-python-client

Unofficial Python client library for CardPointe Gateway and CardSecure APIs.

PyPI Build Status Software license

Compatibility

  • python >= 3.7

Installation

Install the latest release with pip:

pip install cardpointe-api-python-client

Example Usage

CardPointe Gateway API

from cardpointe.gateway.api import GatewayAPI

api = GatewayAPI(
    site="fts-uat",
    merchant_id="496160873888",
    username="testing",
    password="testing123"
)

# Inquire Merchant
response = api.inquireMerchant.get()

# Authorization & capture
response = api.authorization.create(
    amount="2.50",
    account="4111 1111 1111 1111",
    expiry="1225",
    cvv2="123",

    name="John Smith",
    city="Denver",
    region="CO",
    postal="80014",
    email="john@smith.com",

    ecomind="E",
    capture="Y",
    userfields={
        "invoice": 12345,
        "user_id": 3
    }
)

Check out the table below for the full list of available services:

Service Examples
Inquire Merchant api.inquireMerchant.get()
Authorization api.authorization.create(...)
Capture api.capture.create(...)
Inquire api.inquire.get(...)
Inquire By Order ID api.inquireByOrderId.get(...)
Void api.void.create(...)
Void By Order ID api.voidByOrderId.create(...)
Refund api.refund.create(...)
Profile api.profile.get(...)
api.profile.create(...)
api.profile.update(...)
api.profile.delete(...)
Signature Capture api.signature.create(...)
BIN api.bin.get(...)
Funding api.funding.get(...)

CardPointe CardSecure API

from cardpointe.cardsecure.api import CardSecureAPI

api = CardSecureAPI(
    site="fts-uat",
    merchant_id="496160873888",
    username="testing",
    password="testing123"
)

response = api.tokenize.create(
    account="4111 1111 1111 1111",
    expiry="1225",
    cvv="123"
)

Check out the table below for the full list of available services:

Service Examples
Tokenize api.tokenize.create(...)
api.tokenize.update(...)
Echo api.echo.create(...)

Links

Project details


Download files

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

Source Distribution

cardpointe-api-python-client-0.0.2.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

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

cardpointe_api_python_client-0.0.2-py2.py3-none-any.whl (19.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cardpointe-api-python-client-0.0.2.tar.gz.

File metadata

File hashes

Hashes for cardpointe-api-python-client-0.0.2.tar.gz
Algorithm Hash digest
SHA256 00251504f53382afe44d5d35f7633c5c1480fc917a4b4c082251f239a8457bb4
MD5 f3f29638c2747f5f99ff75f4a4fbbcff
BLAKE2b-256 a631e6b5251aa6c6dfaadec0fb4b21953239d1c6664d3605456e5558a81d8bb8

See more details on using hashes here.

File details

Details for the file cardpointe_api_python_client-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cardpointe_api_python_client-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 72180130821690c7c376d3678b1ff62450d91aa21375194806ec5e0ed00eb486
MD5 ef3d8c78420df80279410c781c581af0
BLAKE2b-256 f982ff82ac21402e32f1f1a09a4ed3c30dd74f2cfe20d457b09ef800259df4a1

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