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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cardpointe-api-python-client-0.0.2.tar.gz.
File metadata
- Download URL: cardpointe-api-python-client-0.0.2.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00251504f53382afe44d5d35f7633c5c1480fc917a4b4c082251f239a8457bb4
|
|
| MD5 |
f3f29638c2747f5f99ff75f4a4fbbcff
|
|
| BLAKE2b-256 |
a631e6b5251aa6c6dfaadec0fb4b21953239d1c6664d3605456e5558a81d8bb8
|
File details
Details for the file cardpointe_api_python_client-0.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: cardpointe_api_python_client-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72180130821690c7c376d3678b1ff62450d91aa21375194806ec5e0ed00eb486
|
|
| MD5 |
ef3d8c78420df80279410c781c581af0
|
|
| BLAKE2b-256 |
f982ff82ac21402e32f1f1a09a4ed3c30dd74f2cfe20d457b09ef800259df4a1
|