Skip to content

Commit

Permalink
[FIX] payment: fix functionality of def _mercadopago_s2s_validate_tree
Browse files Browse the repository at this point in the history
closes #63

Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>
  • Loading branch information
ALopez-Adhoc committed Jul 28, 2023
1 parent c1b22e9 commit fe80532
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions payment_mercadopago/models/payment.py
Expand Up @@ -322,9 +322,9 @@ def _mercadopago_s2s_validate_tree(self, tree):
res = True

# TODO: deberíamos separar este caso? sería cuando validamos tarjeta
# elif status_code == "authorized" and status_detail == "pending_capture":
# self._set_transaction_authorized()
# return True
elif status_code == "authorized" and status_detail == "pending_capture":
self._set_transaction_done()
res = True
elif status_code in ["in_process", "pending", "authorized"]:
self.write({'acquirer_reference': tree.get('id')})
self._set_transaction_pending()
Expand Down

0 comments on commit fe80532

Please sign in to comment.