Skip to content

Commit 72e7d6f

Browse files
committed
Merge pull request AuthorizeNet#19 from sunnyrajrathod/future
Added submodule and fix for ARBGetSubscriptionStatus error response case.
2 parents e7c2bcd + fab926f commit 72e7d6f

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "sample-code-python"]
2+
path = sample-code-python
3+
url = https://github.com/AuthorizeNet/sample-code-python

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ install:
99
- pip install unittest2
1010
- pip install nose
1111
- pip install pyxb
12-
script: nosetests
12+
13+
before_script:
14+
- git submodule update --remote --recursive
15+
16+
script:
17+
- nosetests
18+
- python setup.py install
19+
- cd sample-code-python
20+
- for i in `ls */*.py`;do python $i;done

authorizenet/apicontrollers.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,15 @@ def getresponseclass(self):
113113

114114
def afterexecute(self):
115115
response = self._httpResponse
116-
if constants.StatusStart in response:
116+
if constants.note in response:
117117
response = response.replace(constants.note, '')
118+
119+
if constants.StatusStart in response:
118120
start = response.index(constants.StatusStart)
119121
end = response.index(constants.StatusEnd)
120122
response = response.replace(response[start:end+9], '')
121-
self._httpResponse = response
123+
124+
self._httpResponse = response
122125
return
123126

124127
class ARBUpdateSubscriptionController(apicontrollersbase.APIOperationBase):

sample-code-python

Submodule sample-code-python added at 7e00de2

0 commit comments

Comments
 (0)