8
According to their API documentation here you need to pass a dictionary.
So, you can just modify your code by wrapping your arguments in dict()
and it will work.
client = razorpay.Client(auth=("<key>", "<secret>"))
resp = client.order.create(dict(amount=5000, currency='INR', receipt='TR110462011', payment_capture='1'))
Source:stackexchange.com