iyzico / iyzipay-python

iyzipay api python client
MIT License
87 stars 35 forks source link

Variable name in the example in the readme causes a bug when used in Django function view. #72

Closed razaltcom closed 1 year ago

razaltcom commented 3 years ago

In a Django function view, the function traditionally takes an argument called request. Like this:

def main(request):
   ...

In the example in the readme, there is a variable called requestthat overwrites it. Solvable, but takes time of the newcomer.

I propose renaming it to payment_request, or something.

byasarcse commented 1 year ago

Hello @razaltcom ,

As you know its a sample code, you can change the definition in your integration.

Thanks and Regards,