[Django]-Request() got an unexpected keyword argument 'amount' in razorpay integration with django

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'))

Leave a comment