Skip to content

Commit

Permalink
[FIX] MERCADOPAGO add _compute_feature_support_fields to allow tokeni…
Browse files Browse the repository at this point in the history
…zation

closes #78

Signed-off-by: augusto-weiss <awe@adhoc.com.ar>
  • Loading branch information
maq-adhoc committed Jan 12, 2024
1 parent d1e07f1 commit 59f1023
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions payment_mercadopago/models/payment_provider.py
Expand Up @@ -160,3 +160,13 @@ def _get_validation_currency(self):
# TODO: Deberíamos forzar la moneda a ARS ??
return res

#=== COMPUTE METHODS ===#

def _compute_feature_support_fields(self):
""" Override of `payment` to enable additional features. """
super()._compute_feature_support_fields()
self.filtered(lambda p: p.code == 'mercadopago').update({
'support_manual_capture': False,
'support_refund': 'partial',
'support_tokenization': True,
})

0 comments on commit 59f1023

Please sign in to comment.