Skip to content

Commit

Permalink
Merge pull request #21 from paynow/hotfix/urls-encoding
Browse files Browse the repository at this point in the history
Do not encode result  and result url on Remote transactions
  • Loading branch information
eliphas1204 authored May 21, 2024
2 parents 9b70410 + f15df64 commit ce60232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paynow/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def __init(self, payment):
if not self.__verify_hash(response_object, self.integration_key):
raise HashMismatchException("Hashes do not match")

# Create a new InitResponse object object passing in the data from Paynow
# Create a new InitResponse object passing in the data from Paynow
return InitResponse(response_object)

def __init_mobile(self, payment, phone, method):
Expand Down Expand Up @@ -468,7 +468,7 @@ def __build_mobile(self, payment, phone, method):
}

for key, value in body.items():
if(key == 'authemail'):
if key == 'authemail' or key == 'returnurl' or key == 'resulturl':
continue

body[key] = quote_plus(str(value)) # Url encode the
Expand Down

0 comments on commit ce60232

Please sign in to comment.