Skip to content

Commit

Permalink
temp rebasing PR 83 (6d79b4c)
Browse files Browse the repository at this point in the history
  • Loading branch information
roboadhoc committed Apr 5, 2024
2 parents 681e1c2 + 6d79b4c commit 1cd5170
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions payment_mercadopago/models/payment_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _send_payment_request(self):
self._handle_notification_data('mercadopago', feedback_data)
self.env.cr.commit()

def _send_refund_request(self, amount_to_refund=None, create_refund_transaction=True):
def _send_refund_request(self, amount_to_refund=None):
""" Override of payment to send a refund request to MercadoPago.
Note: self.ensure_one()
Expand All @@ -114,14 +114,13 @@ def _send_refund_request(self, amount_to_refund=None, create_refund_transaction=
:return: The refund transaction if any
:rtype: recordset of `payment.transaction`
"""
if self.provider_code != 'mercadopago':
return super()._send_refund_request(
amount_to_refund=amount_to_refund,
create_refund_transaction=create_refund_transaction,
)

# TODO: implement
raise UserError("MercadoPago: _send_refund_request not implemented")
res = super()._send_refund_request(
amount_to_refund=amount_to_refund,
)
if self.provider_code == 'mercadopago':
# TODO: implement
raise UserError("MercadoPago: _send_refund_request not implemented")
return res

def _send_void_request(self):
""" Override of payment to send a void request to Authorize.
Expand Down

0 comments on commit 1cd5170

Please sign in to comment.