Skip to content

Commit

Permalink
[IMP] add wizards check payment in MP
Browse files Browse the repository at this point in the history
  • Loading branch information
filoquin authored and ALopez-Adhoc committed Aug 28, 2023
1 parent 3c8b9f1 commit 3c14a84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions payment_mercadopago/models/mercadopago_request.py
Expand Up @@ -163,9 +163,7 @@ def payment(self, tx, amount, capture=True, cvv_token=None):
MercadoPago payment
"""
_logger.info('Inicio tx con MP token %s' % cvv_token)
#import random
#return {'status':'pending', 'status_detail':'tests', 'id':int(random.random()*5000)}


capture, validation_capture_method = self.validation_capture_method(tx)
partner_email = tx.payment_token_id.email or tx.partner_id.email
customer_id = self.get_customer_profile(partner_email) if partner_email else None
Expand Down
1 change: 1 addition & 0 deletions payment_mercadopago/wizards/check_payments.py
Expand Up @@ -104,3 +104,4 @@ def get_tx_info_from_mercadopago(self):
_logger.error('cant validate_tree')

raise UserError("%s" % ' \n'.join(txt))

0 comments on commit 3c14a84

Please sign in to comment.