summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant_adyen/models/pos_payment_method.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/pos_restaurant_adyen/models/pos_payment_method.py')
-rw-r--r--addons/pos_restaurant_adyen/models/pos_payment_method.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/addons/pos_restaurant_adyen/models/pos_payment_method.py b/addons/pos_restaurant_adyen/models/pos_payment_method.py
new file mode 100644
index 00000000..e40b6e08
--- /dev/null
+++ b/addons/pos_restaurant_adyen/models/pos_payment_method.py
@@ -0,0 +1,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',
+ }