Skip to content

Commit

Permalink
Merge pull request #20 from paynow/hotfix/urls-encoding
Browse files Browse the repository at this point in the history
fix:make sure resulturl and return url are escaped
  • Loading branch information
eliphas1204 authored Jan 17, 2024
2 parents a4acef1 + 85210b9 commit 9ce03a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paynow/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ def __build(self, payment):
}

for key, value in body.items():
body[key] = quote_plus(str(value))
if key == 'returnurl' or key == 'resulturl':
continue
body[key] = quote_plus(str(value))
body['hash'] = self.__hash(body, self.integration_key)

return body
Expand Down

0 comments on commit 9ce03a9

Please sign in to comment.