@@ -19,4 +19,69 @@ Docs related to this repository are located at:
1919From the root of the project, using your installed Python Interpreter, run the following command:
2020``` shell
2121python3 -m unittest discover ./tests -p ' *.py'
22+ ```
23+
24+ ## Install RocketGate SDK
25+ ``` shell
26+ pip install RocketGate
27+ ```
28+
29+ ## Run examples
30+
31+ Clone this repository and run examples from ` ./examples ` folder
32+ with ` python3 ./examples/AuthOnly.py `
33+
34+ ``` bash
35+ cd ~
36+ git clone https://github.com/rocketgate/rocketgate-python-sdk
37+ cd ~ /rocketgate-python-sdk
38+ python3 ./examples/AuthOnly.py
39+ ```
40+
41+
42+ Expect to see output like:
43+
44+ ``` bash
45+ Auth Only succeeded
46+ GUID: 100019354857297
47+ Response Code: 0
48+ Reason Code: 0
49+ AuthNo: 942499
50+ AVS: None
51+ CVV2: None
52+ Card Hash: 8Yz0jmvTGdDaZV9g58L+9mJ+0jw2fodvgktC/jS8GSs=
53+ Card Region: 1,2
54+ Card Description: CLASSIC
55+ Account: 70
56+ Scrub: NEGDB=0,PROFILE=0,ACTIVITY=1
57+ ```
58+
59+ ## Using your local github clone for testing
60+ If you want to test the modifications of your local version
61+ set ` PYTHONPATH ` env variable with the path to your
62+ local repository and you can run examples from ` ./examples ` folder.
63+
64+ ``` bash
65+ cd ~
66+ git clone https://github.com/rocketgate/rocketgate-python-sdk
67+ cd ~ /rocketgate-python-sdk
68+ export PYTHONPATH=~ /rocketgate-python-sdk
69+ python3 ./examples/AuthOnly.py
70+ ```
71+
72+ Expect to see output like:
73+
74+ ``` bash
75+ Auth Only succeeded
76+ GUID: 10001935007BB5F
77+ Response Code: 0
78+ Reason Code: 0
79+ AuthNo: 400966
80+ AVS: None
81+ CVV2: None
82+ Card Hash: 8Yz0jmvTGdDaZV9g58L+9mJ+0jw2fodvgktC/jS8GSs=
83+ Card Region: 1,2
84+ Card Description: CLASSIC
85+ Account: 70
86+ Scrub: NEGDB=0,PROFILE=0,ACTIVITY=1
2287```
0 commit comments