Skip to content

Future #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "sample-code-python"]
path = sample-code-python
url = https://github.com/AuthorizeNet/sample-code-python
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ install:
- pip install unittest2
- pip install nose
- pip install pyxb
script: nosetests

before_script:
- git submodule update --remote --recursive

script:
- nosetests
- python setup.py install
- cd sample-code-python
- for i in `ls */*.py`;do python $i;done
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/AuthorizeNet/sdk-python.png?branch=master)]
(https://travis-ci.org/AuthorizeNet/sdk-python)
[![Coverage Status](https://coveralls.io/repos/AuthorizeNet/sdk-php/badge.svg?branch=master&service=github)](https://coveralls.io/github/AuthorizeNet/sdk-php?branch=master)

`pip install authorizenet`

Expand Down
11 changes: 8 additions & 3 deletions authorizenet/apicontrollers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,18 @@ def getresponseclass(self):
''' Returns the response class '''
return apicontractsv1.ARBGetSubscriptionStatusResponse()

def afterExecute(self, response):
if constants.StatusStart in response:
def afterexecute(self):
response = self._httpResponse
if constants.note in response:
response = response.replace(constants.note, '')

if constants.StatusStart in response:
start = response.index(constants.StatusStart)
end = response.index(constants.StatusEnd)
response = response.replace(response[start:end+9], '')
return response

self._httpResponse = response
return

class ARBUpdateSubscriptionController(apicontrollersbase.APIOperationBase):

Expand Down
1 change: 1 addition & 0 deletions sample-code-python
Submodule sample-code-python added at 7e00de