Skip to content

Commit 9c7a1d4

Browse files
author
srathod
committed
- XML response for ARBGetSubscriptionStatus was not parsed correctly throwing an UnrecognizedAttributeError.
- This was due to "note:" and "<Status>" element not being removed from ARBGetSubscriptionStatusResponse correctly. - Fixed the call to special afterexecute method of ARBGetSubscriptionStatusController.
1 parent 1ac42f7 commit 9c7a1d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

authorizenet/apicontrollers.py

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

114-
def afterExecute(self, response):
114+
def afterexecute(self):
115+
response = self._httpResponse
115116
if constants.StatusStart in response:
116117
response = response.replace(constants.note, '')
117118
start = response.index(constants.StatusStart)
118119
end = response.index(constants.StatusEnd)
119120
response = response.replace(response[start:end+9], '')
120-
return response
121+
self._httpResponse = response
122+
return
121123

122124
class ARBUpdateSubscriptionController(apicontrollersbase.APIOperationBase):
123125

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