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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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