Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions razorpay/resources/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,6 @@ def capture(self, payment_id, amount, data={}, **kwargs): # nosemgrep : python.l
data['amount'] = amount
return self.post_url(url, data, **kwargs)

def refund(self, payment_id, amount, data={}, **kwargs): # pragma: no cover # nosemgrep : python.lang.correctness.common-mistakes.default-mutable-dict.default-mutable-dict
"""
Refund Payment for given Id

Args:
payment_id : Id for which payment object has to be refunded
amount : Amount for which the payment has to be refunded

Returns:
Payment dict after getting refunded
"""
url = "{}/{}/refund".format(self.base_url, payment_id)
data['amount'] = amount
return self.post_url(url, data, **kwargs)

def transfer(self, payment_id, data={}, **kwargs):
"""
Create Transfer for given Payment Id
Expand Down