Skip to content
Open
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
4 changes: 2 additions & 2 deletions iyzipay/pki_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def append(self, key, value=None):
return self

def append_price(self, key, value=None):
if value is not None and value is not "":
if value is not None and value != "":
self.append_key_value(key, str(round(float(value), 2)))
return self

Expand All @@ -22,7 +22,7 @@ def append_array(self, key, array=None):
return self

def append_key_value(self, key, value=None):
if value is not None and value is not "":
if value is not None and value != "":
self.request_string = self.request_string + key + "=" + str(value) + ","

def remove_trailing_comma(self):
Expand Down