Skip to content

Commit 207e384

Browse files
author
srathod
committed
- For ARBGetSubscriptionStatus, in case of error in response, only "note" is sent in XML response and "<Status>" tag is not sent.
- Hence modified the condition in afterexecute.
1 parent 930a0e3 commit 207e384

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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):

0 commit comments

Comments
 (0)