Unofficial Python client library for CardPointe Gateway and CardSecure APIs.
python
>= 3.7
Install the latest release with pip:
pip install cardpointe-api-python-client
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(...) |
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(...) |