File tree Expand file tree Collapse file tree 5 files changed +22
-4
lines changed Expand file tree Collapse file tree 5 files changed +22
-4
lines changed Original file line number Diff line number Diff line change
1
+ [submodule "sample-code-python "]
2
+ path = sample-code-python
3
+ url = https://github.com/AuthorizeNet/sample-code-python
Original file line number Diff line number Diff line change @@ -9,4 +9,12 @@ install:
9
9
- pip install unittest2
10
10
- pip install nose
11
11
- 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
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Build Status] ( https://travis-ci.org/AuthorizeNet/sdk-python.png?branch=master )]
4
4
(https://travis-ci.org/AuthorizeNet/sdk-python )
5
+ [ ![ Coverage Status] ( https://coveralls.io/repos/AuthorizeNet/sdk-php/badge.svg?branch=master&service=github )] ( https://coveralls.io/github/AuthorizeNet/sdk-php?branch=master )
5
6
6
7
` pip install authorizenet `
7
8
Original file line number Diff line number Diff line change @@ -111,13 +111,18 @@ def getresponseclass(self):
111
111
''' Returns the response class '''
112
112
return apicontractsv1 .ARBGetSubscriptionStatusResponse ()
113
113
114
- def afterExecute (self , response ):
115
- if constants .StatusStart in response :
114
+ def afterexecute (self ):
115
+ response = self ._httpResponse
116
+ if constants .note in response :
116
117
response = response .replace (constants .note , '' )
118
+
119
+ if constants .StatusStart in response :
117
120
start = response .index (constants .StatusStart )
118
121
end = response .index (constants .StatusEnd )
119
122
response = response .replace (response [start :end + 9 ], '' )
120
- return response
123
+
124
+ self ._httpResponse = response
125
+ return
121
126
122
127
class ARBUpdateSubscriptionController (apicontrollersbase .APIOperationBase ):
123
128
You can’t perform that action at this time.
0 commit comments