Skip to content

Commit

Permalink
make conversationId optional (iyzico#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahselek authored and yyenigun committed Jan 4, 2018
1 parent 47e1468 commit 6763450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iyzipay/iyzipay_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def format_header_string(api_key, hashed):

@staticmethod
def resource_pki(request):
return 'locale=' + request.get('locale') + ',conversationId=' + request.get('conversationId') + ','
return 'locale=' + request.get('locale') + (',conversationId=' + request.get('conversationId') + ',' if request.get('conversationId') else ',')

@staticmethod
def buyer_pki(buyer):
Expand Down

0 comments on commit 6763450

Please sign in to comment.