razorpay / razorpay-python

Razorpay Python SDK
https://pypi.python.org/pypi/razorpay
MIT License
154 stars 81 forks source link

Payment.refund API not backward compatible #230

Open shikhart98 opened 2 years ago

shikhart98 commented 2 years ago

In current implementation as of v1.3.0, in Payment class there are 2 refund function definitions, always the later one will be picked and will not be backward compatible!

Function overloading won't work here. https://github.com/razorpay/razorpay-python/blob/master/razorpay/resources/payment.py#L52 https://github.com/razorpay/razorpay-python/blob/master/razorpay/resources/payment.py#L120

ankitdas13 commented 1 year ago

@shikhart98 Sorry for the delay. Both functions are the same, but thanks for informing this to us. We will update this in the next release.