Skip to content

Commit 154d641

Browse files
committed
Merge pull request AuthorizeNet#25 from AuthorizeNet/future
Future
2 parents b7f8f0f + 276dd66 commit 154d641

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/AuthorizeNet/sdk-python.png?branch=master)]
44
(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)
56

67
`pip install authorizenet`
78

authorizenet/apicontrollers.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,18 @@ def getresponseclass(self):
111111
''' Returns the response class '''
112112
return apicontractsv1.ARBGetSubscriptionStatusResponse()
113113

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:
116117
response = response.replace(constants.note, '')
118+
119+
if constants.StatusStart in response:
117120
start = response.index(constants.StatusStart)
118121
end = response.index(constants.StatusEnd)
119122
response = response.replace(response[start:end+9], '')
120-
return response
123+
124+
self._httpResponse = response
125+
return
121126

122127
class ARBUpdateSubscriptionController(apicontrollersbase.APIOperationBase):
123128

sample-code-python

Submodule sample-code-python added at 7e00de2

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy