[FIX] payment: display payment tokens for form acquirers
- The method `_get_available_payment_input` that returns the available payments acquirers and the payments tokens for a specific user never returns the payments tokens linked to a non s2s payment acquirers. This is wrong, the payments tokens should always appears no matter what are the acquirers' payment flow. The payment flow is used only to specify where the customer should input his credit cards details, either on Odoo or on the payment acquirer's website (or popup). Once a token is created, it is safe to process it since no credits cards details are stored on the Odoo database. closes odoo/odoo#30258
This commit is contained in:
@@ -324,7 +324,7 @@ class PaymentAcquirer(models.Model):
|
||||
'acquirers': acquirers,
|
||||
'pms': self.env['payment.token'].search([
|
||||
('partner_id', '=', partner.id),
|
||||
('acquirer_id', 'in', acquirers.filtered(lambda acq: acq.payment_flow == 's2s').ids)]),
|
||||
('acquirer_id', 'in', acquirers.ids)]),
|
||||
}
|
||||
|
||||
@api.multi
|
||||
|
||||
Reference in New Issue
Block a user