Skip to main content

RocketGate Gateway Python SDK

Project description

rocketgate-python-sdk

RocketGate Gateway Python SDK

The Python 3.x Software Development Kit and Test Scripts

Documentation is available in RocketGate's helpdesk at https://help.rocketgate.com/support/solutions/28000015702

Docs related to this repository are located at:

  1. GatewayService: https://help.rocketgate.com/support/solutions/articles/28000018238-gatewayservice
  2. GatewayRequest: https://help.rocketgate.com/support/solutions/articles/28000018237-gatewayrequest
  3. GatewayResponse: https://help.rocketgate.com/support/solutions/articles/28000018236-gatewayresponse
  4. GatewayResponse Error / Decline Codes: https://help.rocketgate.com/support/solutions/articles/28000018169-gatewayresponse-error-decline-codes

Running integration tests

From the root of the project, using your installed Python Interpreter, run the following command:

python3 -m unittest discover ./tests -p '*.py'

Install RocketGate SDK

pip install RocketGate

Run examples

Clone this repository and run examples from ./examples folder with python3 ./examples/AuthOnly.py

cd ~
git clone https://github.com/rocketgate/rocketgate-python-sdk
cd ~/rocketgate-python-sdk
python3 ./examples/AuthOnly.py

Expect to see output like:

Auth Only succeeded
GUID:  100019354857297
Response Code:  0
Reason Code:  0
AuthNo:  942499
AVS:  None
CVV2:  None
Card Hash:  8Yz0jmvTGdDaZV9g58L+9mJ+0jw2fodvgktC/jS8GSs=
Card Region:  1,2
Card Description:  CLASSIC
Account:  70
Scrub:  NEGDB=0,PROFILE=0,ACTIVITY=1

Using your local github clone for testing

If you want to test the modifications of your local version set PYTHONPATH env variable with the path to your local repository and you can run examples from ./examples folder.

cd ~
git clone https://github.com/rocketgate/rocketgate-python-sdk
cd ~/rocketgate-python-sdk
export PYTHONPATH=~/rocketgate-python-sdk
python3 ./examples/AuthOnly.py

Expect to see output like:

Auth Only succeeded
GUID:  10001935007BB5F
Response Code:  0
Reason Code:  0
AuthNo:  400966
AVS:  None
CVV2:  None
Card Hash:  8Yz0jmvTGdDaZV9g58L+9mJ+0jw2fodvgktC/jS8GSs=
Card Region:  1,2
Card Description:  CLASSIC
Account:  70
Scrub:  NEGDB=0,PROFILE=0,ACTIVITY=1

Project details


Release history Release notifications | RSS feed

This version

3.8

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

rocketgate-3.8-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file rocketgate-3.8-py3-none-any.whl.

File metadata

  • Download URL: rocketgate-3.8-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rocketgate-3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c7254b8be99d8e3cef963a05a523c82a1a3c0bb7db38f555a8339068ef2f0ef1
MD5 0b673f644388f3c5bfa6b46b9109a795
BLAKE2b-256 3e80adb70826089d14f6989713d745908df4e5b853d87bffc817b3ee53bd085a

See more details on using hashes here.

Provenance

The following attestation bundles were made for rocketgate-3.8-py3-none-any.whl:

Publisher: release.yml on rocketgate/rocketgate-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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