blob: e40b6e08f3e57a9033667b815e5d0608fa9b1131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# coding: utf-8
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class PosPaymentMethod(models.Model):
_inherit = 'pos.payment.method'
adyen_merchant_account = fields.Char(help='The POS merchant account code used in Adyen')
def _get_adyen_endpoints(self):
return {
**super(PosPaymentMethod, self).get_adyen_endpoints(),
'adjust': 'https://pal-%s.adyen.com/pal/servlet/Payment/v52/adjustAuthorisation',
'capture': 'https://pal-%s.adyen.com/pal/servlet/Payment/v52/capture',
}
|