[IMP] brands computation
This commit is contained in:
parent
eec6d4fd06
commit
a81535f7bc
|
|
@ -37,11 +37,9 @@ class HyperPayTokenization(Controller):
|
|||
acquirer_id = int(data.get('acquirer_id'))
|
||||
acquirer = request.env['payment.acquirer'].sudo().search([('id', '=', acquirer_id)])
|
||||
payment_icons = acquirer.payment_icon_ids.mapped('name')
|
||||
data_brands = "VISA"
|
||||
base_url = request.httprequest.host_url
|
||||
if len(payment_icons) > 0:
|
||||
brands = [payment_icon[i.upper()] for i in payment_icons if i.upper() in payment_icon.keys()]
|
||||
data_brands = brands and " ".join(brands) or data_brands
|
||||
brands = [payment_icon[i.upper()] for i in payment_icons if i.upper() in payment_icon.keys()]
|
||||
data_brands = brands and " ".join(brands) or "VISA"
|
||||
tx = self._create_validation_transaction(acquirer)
|
||||
payload = self._get_hyperpay_token_payload(acquirer, data)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue