diff --git a/payment_paytabs_odoo/README.rst b/payment_paytabs_odoo/README.rst new file mode 100644 index 000000000..67c4ef06c --- /dev/null +++ b/payment_paytabs_odoo/README.rst @@ -0,0 +1,53 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + + +PayTabs Payment Acquirer +======================== + +This module comes under Odoo Accounting. +It will Use for Payment. + +Installation +============ + - www.odoo.com/documentation/15.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/15.0/legal/licenses/licenses.html) + +Company +------- +* 'Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: (v15) Shyamgeeth.PP @ Cybrosys +Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ + + + diff --git a/payment_paytabs_odoo/__init__.py b/payment_paytabs_odoo/__init__.py new file mode 100644 index 000000000..38d056962 --- /dev/null +++ b/payment_paytabs_odoo/__init__.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import models +from . import controllers +from odoo.addons.payment import reset_payment_acquirer + + +def uninstall_hook(cr, registry): + """Function to reset the payment provider 'paytabs' before module + uninstallation.""" + reset_payment_acquirer(cr, registry, 'paytabs') diff --git a/payment_paytabs_odoo/__manifest__.py b/payment_paytabs_odoo/__manifest__.py new file mode 100644 index 000000000..3449e1563 --- /dev/null +++ b/payment_paytabs_odoo/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Paytabs Payment Acquirer', + 'version': '15.0.1.0.0', + 'category': 'Accounting/Payment Acquirers', + 'summary': 'Payment Acquirer: Paytabs Implementation', + 'description': """This module enables seamless payments through PayTabs, " + "ensuring secure and convenient online transactions.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['payment', 'website_sale'], + 'data': [ + 'views/payment_acquirer_views.xml', + 'views/payment_paytabs_templates.xml', + 'data/payment_acquirer_data.xml', + ], + 'uninstall_hook': 'uninstall_hook', + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/payment_paytabs_odoo/controllers/__init__.py b/payment_paytabs_odoo/controllers/__init__.py new file mode 100644 index 000000000..a67ef6cc6 --- /dev/null +++ b/payment_paytabs_odoo/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import payment_paytabs_odoo diff --git a/payment_paytabs_odoo/controllers/payment_paytabs_odoo.py b/payment_paytabs_odoo/controllers/payment_paytabs_odoo.py new file mode 100644 index 000000000..769bc6506 --- /dev/null +++ b/payment_paytabs_odoo/controllers/payment_paytabs_odoo.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +import logging +import pprint +from odoo import http +from odoo.http import request + +_logger = logging.getLogger(__name__) + + +class PaymentPaytabs(http.Controller): + """ + Controller for handling payment-related operations with Paytabs. + Methods: + paytabs_return: Handle the return from Paytabs payment gateway. + """ + _return_url = '/payment/paytabs/return' + + @http.route( + _return_url, type='http', auth='public', methods=['GET', 'POST'], + csrf=False, + save_session=False + ) + def paytabs_return(self, **data): + """ + Handle the return from PayTabs payment gateway. + + This method is used when PayTabs sends a notification with payment + data. It retrieves the transaction data, handles the notification + data, and redirects the user to the payment status page. + + :param post: The POST data received from PayTabs. + :return: A redirect response to the payment status page. + """ + _logger.info("entering _handle_feedback_data with data:\n%s", + pprint.pformat(data)) + request.env['payment.transaction'].sudo()._handle_feedback_data( + 'paytabs', data) + return request.redirect('/payment/status') diff --git a/payment_paytabs_odoo/data/payment_acquirer_data.xml b/payment_paytabs_odoo/data/payment_acquirer_data.xml new file mode 100644 index 000000000..710e692b6 --- /dev/null +++ b/payment_paytabs_odoo/data/payment_acquirer_data.xml @@ -0,0 +1,37 @@ + + + + + paytabs + Paytabs + + + +

+ PayTabs offers straightforward payment systems which makes the + transaction process simple and convenient for your clients. +

+
    +
  • Online + Payment +
  • +
  • Payment + Status Tracking +
  • +
+
+ False + False + + False +
+ + + + Paytabs + paytabs + inbound + + +
diff --git a/payment_paytabs_odoo/doc/RELEASE_NOTES.md b/payment_paytabs_odoo/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..667687e4d --- /dev/null +++ b/payment_paytabs_odoo/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 15.01.2024 +#### Version 15.0.1.0.0 +##### ADD +- Initial commit for PayTabs Payment Acquirer + diff --git a/payment_paytabs_odoo/models/__init__.py b/payment_paytabs_odoo/models/__init__.py new file mode 100644 index 000000000..6d443b527 --- /dev/null +++ b/payment_paytabs_odoo/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import account_payment_method +from . import payment_acquirer +from . import payment_transaction diff --git a/payment_paytabs_odoo/models/account_payment_method.py b/payment_paytabs_odoo/models/account_payment_method.py new file mode 100644 index 000000000..32ab27674 --- /dev/null +++ b/payment_paytabs_odoo/models/account_payment_method.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import api, models + + +class AccountPaymentMethod(models.Model): + """Class representing a payment method for an account.""" + _inherit = 'account.payment.method' + + @api.model + def _get_payment_method_information(self): + """Returns the payment method information""" + res = super()._get_payment_method_information() + res['paytabs'] = {'mode': 'unique', 'domain': [('type', '=', 'bank')]} + return res diff --git a/payment_paytabs_odoo/models/payment_acquirer.py b/payment_paytabs_odoo/models/payment_acquirer.py new file mode 100644 index 000000000..f747adea0 --- /dev/null +++ b/payment_paytabs_odoo/models/payment_acquirer.py @@ -0,0 +1,85 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +import logging +import requests + +from odoo import _, api, fields, models +from odoo.exceptions import ValidationError + +_logger = logging.getLogger(__name__) + +SUPPORTED_CURRENCIES = ('EGP', 'USD', 'EUR', 'GBP', 'INR') + + +class PaymentAcquirer(models.Model): + """The Class PaymentAcquirerPaytabs represents a list of fields + that can be used to create a new payment method as a paytab.""" + _inherit = 'payment.acquirer' + + provider = fields.Selection(selection_add=[ + ('paytabs', 'Paytabs') + ], ondelete={'paytabs': 'set default'}) + profile_id = fields.Char(string='Profile ID', groups='base.group_user', + help="Paytabs profile id of a user") + api_key = fields.Char(string='Api Key', required_if_provider='paytabs', + groups='base.group_user', help="Paytabs API key") + domain = fields.Char(string='Domain', help='Domain for the url') + + @api.model + def _get_compatible_acquirers(self, *args, currency_id=None, **kwargs): + """Returns the compatible acquires""" + acquirers = super()._get_compatible_acquirers(*args, + currency_id=currency_id, + **kwargs) + currency = self.env['res.currency'].browse(currency_id).exists() + if currency and currency.name not in SUPPORTED_CURRENCIES: + acquirers = acquirers.filtered(lambda a: a.provider != 'paytabs') + return acquirers + + def _get_default_payment_method_id(self): + """Check the default payment method and if the provider is not + the paytab then it returns the function else it call + the id of the paytab """ + self.ensure_one() + if self.provider != 'paytabs': + return super()._get_default_payment_method_id() + return self.env.ref('payment_paytabs_odoo.payment_method_paytabs').id + + def _paytabs_make_request(self, url, data=None, method='POST'): + """Create a request to paytabs """ + self.ensure_one() + data.pop('api_url') + headers = { + "Authorization": self.api_key, + "Content-Type": "application/json", + } + + try: + response = requests.request(method, url, json=data, + headers=headers, + timeout=60) + response.raise_for_status() + except requests.exceptions.RequestException: + _logger.exception("Unable to communicate with Paytabs: %s", url) + raise ValidationError("Paytabs: " + _( + "Could not establish the connection to the API.")) + return response.json() diff --git a/payment_paytabs_odoo/models/payment_transaction.py b/payment_paytabs_odoo/models/payment_transaction.py new file mode 100644 index 000000000..510be82be --- /dev/null +++ b/payment_paytabs_odoo/models/payment_transaction.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import _, api, models +from odoo.addons.payment_paytabs_odoo.controllers.payment_paytabs_odoo import PaymentPaytabs +from odoo.exceptions import ValidationError, _logger +from werkzeug import urls + + +class PaymentTransaction(models.Model): + """This class represents a payment transaction that can be used to pay.""" + _inherit = 'payment.transaction' + + def _get_specific_rendering_values(self, processing_values): + """Returns a list of rendering values for api connections """ + res = super()._get_specific_rendering_values(processing_values) + if self.provider != 'paytabs': + return res + api_url = 'https://secure-global.paytabs.com/payment/request' + domain_url = self.env['payment.acquirer'].search([('provider', '=', 'paytabs')]).domain + paytabs_values = { + "profile_id": int(self.acquirer_id.profile_id), + "tran_type": "sale", + "tran_class": "ecom", + "cart_description": self.reference, + "cart_id": self.reference, + "cart_currency": self.currency_id.name, + "cart_amount": processing_values['amount'], + 'return': urls.url_join(domain_url, + PaymentPaytabs._return_url), + 'callback': urls.url_join(domain_url, + PaymentPaytabs._return_url), + + "api_url": api_url, + "customer_details": { + "name": self.partner_name, + "email": self.partner_email, + "street1": self.partner_address, + "city": self.partner_city, + "state": self.partner_state_id.name, + "country": self.partner_country_id.name, + "ip": "127.0.0.1" + }, + } + response_content = self.acquirer_id._paytabs_make_request(api_url, + paytabs_values) + response_content['api_url'] = response_content.get('redirect_url') + return response_content + + @api.model + def _get_tx_from_feedback_data(self, provider, data): + """Returns the tx from feedback data """ + tx = super()._get_tx_from_feedback_data(provider, data) + if provider != 'paytabs': + return tx + + reference = data.get('cartId') + tx = self.search( + [('reference', '=', reference), ('provider', '=', 'paytabs')]) + if not tx: + raise ValidationError( + "Paytabs: " + _("No transaction found matching reference %s.", + reference) + ) + return tx + + def _process_feedback_data(self, data): + """It checks the feedback data that is authorised, Error or approved""" + super()._process_feedback_data(data) + if self.provider != 'paytabs': + return + + self.acquirer_reference = data.get('cartId') + status = data.get('respStatus') + if status == 'A': + self._set_done(state_message="Authorised") + elif status == 'APPROVED': + self._set_pending( + state_message="Authorised but on hold for further anti-fraud review") + elif status in ('E', 'D'): + self._set_canceled(state_message="Error") + else: + _logger.warning( + "received unrecognized payment state %s for transaction with reference %s", + status, self.reference + ) + self._set_error("PayTabs: " + _("Invalid payment status.")) diff --git a/payment_paytabs_odoo/static/description/assets/icons/check.png b/payment_paytabs_odoo/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/check.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/chevron.png b/payment_paytabs_odoo/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/chevron.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/cogs.png b/payment_paytabs_odoo/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/cogs.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/consultation.png b/payment_paytabs_odoo/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/consultation.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/ecom-black.png b/payment_paytabs_odoo/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/ecom-black.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/education-black.png b/payment_paytabs_odoo/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/education-black.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/hotel-black.png b/payment_paytabs_odoo/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/hotel-black.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/license.png b/payment_paytabs_odoo/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/license.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/lifebuoy.png b/payment_paytabs_odoo/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/lifebuoy.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/logo.png b/payment_paytabs_odoo/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/logo.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/manufacturing-black.png b/payment_paytabs_odoo/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/manufacturing-black.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/pos-black.png b/payment_paytabs_odoo/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/pos-black.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/puzzle.png b/payment_paytabs_odoo/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/puzzle.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/restaurant-black.png b/payment_paytabs_odoo/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/restaurant-black.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/service-black.png b/payment_paytabs_odoo/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/service-black.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/trading-black.png b/payment_paytabs_odoo/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/trading-black.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/training.png b/payment_paytabs_odoo/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/training.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/update.png b/payment_paytabs_odoo/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/update.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/user.png b/payment_paytabs_odoo/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/user.png differ diff --git a/payment_paytabs_odoo/static/description/assets/icons/wrench.png b/payment_paytabs_odoo/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/icons/wrench.png differ diff --git a/payment_paytabs_odoo/static/description/assets/modules/budget_image.png b/payment_paytabs_odoo/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/modules/budget_image.png differ diff --git a/payment_paytabs_odoo/static/description/assets/modules/credit_image.png b/payment_paytabs_odoo/static/description/assets/modules/credit_image.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/modules/credit_image.png differ diff --git a/payment_paytabs_odoo/static/description/assets/modules/employee_image.png b/payment_paytabs_odoo/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/modules/employee_image.png differ diff --git a/payment_paytabs_odoo/static/description/assets/modules/export_image.png b/payment_paytabs_odoo/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/modules/export_image.png differ diff --git a/payment_paytabs_odoo/static/description/assets/modules/gantt_image.png b/payment_paytabs_odoo/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/modules/gantt_image.png differ diff --git a/payment_paytabs_odoo/static/description/assets/modules/quotation_image.png b/payment_paytabs_odoo/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/modules/quotation_image.png differ diff --git a/payment_paytabs_odoo/static/description/assets/screenshots/hero.gif b/payment_paytabs_odoo/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..eb3243524 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/screenshots/hero.gif differ diff --git a/payment_paytabs_odoo/static/description/assets/screenshots/pay1.png b/payment_paytabs_odoo/static/description/assets/screenshots/pay1.png new file mode 100644 index 000000000..6787ad1b7 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/screenshots/pay1.png differ diff --git a/payment_paytabs_odoo/static/description/assets/screenshots/pay2.png b/payment_paytabs_odoo/static/description/assets/screenshots/pay2.png new file mode 100644 index 000000000..0aee9d147 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/screenshots/pay2.png differ diff --git a/payment_paytabs_odoo/static/description/assets/screenshots/pay3.png b/payment_paytabs_odoo/static/description/assets/screenshots/pay3.png new file mode 100644 index 000000000..953b34d27 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/screenshots/pay3.png differ diff --git a/payment_paytabs_odoo/static/description/assets/screenshots/pay4.png b/payment_paytabs_odoo/static/description/assets/screenshots/pay4.png new file mode 100644 index 000000000..41e84d979 Binary files /dev/null and b/payment_paytabs_odoo/static/description/assets/screenshots/pay4.png differ diff --git a/payment_paytabs_odoo/static/description/banner.png b/payment_paytabs_odoo/static/description/banner.png new file mode 100644 index 000000000..b4c1d0a9d Binary files /dev/null and b/payment_paytabs_odoo/static/description/banner.png differ diff --git a/payment_paytabs_odoo/static/description/icon.png b/payment_paytabs_odoo/static/description/icon.png new file mode 100644 index 000000000..449d225b5 Binary files /dev/null and b/payment_paytabs_odoo/static/description/icon.png differ diff --git a/payment_paytabs_odoo/static/description/index.html b/payment_paytabs_odoo/static/description/index.html new file mode 100644 index 000000000..76756fb68 --- /dev/null +++ b/payment_paytabs_odoo/static/description/index.html @@ -0,0 +1,573 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ PayTabs Payment Acquirer

+

+ A Module For Configuring multiple payment methods +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ This module is used to do payments using various payment methods.

+
+

+ +
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Easy to use

+
+
+ +
+
+ +
+
+

+ Multiple payment options

+
+
+ +
+
+ +
+
+

+ Can choose the country

+
+
+ + +
+ +
+
+

+ Screenshots +

+
+
+

+ Paytabs Payment

+

+ In the Paytabs payment acquirer fill the details.

+ +
+ +
+

+

+

After choosing the products and checking out, choose paytabs as shown in the figure.

+ +
+ + +
+

+ Normal Template

+

It will redirect us to the payment page. From here we can choose the payment option and can further do the remaining payment.

+ +
+ + +
+

+ Modern Template

+

Once the payment is done it will redirect us to the payment status page

+ +
+ +
+ +
+
+

Suggested Products

+
+ + +
+
+ + + +
+
+
+

Our Services

+
+
+ +
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+
+

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+ +
+
+ + + + + +
+
+
+

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/payment_paytabs_odoo/static/src/img/paytabs_icon.png b/payment_paytabs_odoo/static/src/img/paytabs_icon.png new file mode 100644 index 000000000..b42d7f280 Binary files /dev/null and b/payment_paytabs_odoo/static/src/img/paytabs_icon.png differ diff --git a/payment_paytabs_odoo/views/payment_acquirer_views.xml b/payment_paytabs_odoo/views/payment_acquirer_views.xml new file mode 100644 index 000000000..cf2bb3d4a --- /dev/null +++ b/payment_paytabs_odoo/views/payment_acquirer_views.xml @@ -0,0 +1,21 @@ + + + + + payment.acquirer.view.form.inherit.payment.paytabs.odoo + payment.acquirer + + + + + + + + + + + + diff --git a/payment_paytabs_odoo/views/payment_paytabs_templates.xml b/payment_paytabs_odoo/views/payment_paytabs_templates.xml new file mode 100644 index 000000000..971619d56 --- /dev/null +++ b/payment_paytabs_odoo/views/payment_paytabs_templates.xml @@ -0,0 +1,20 @@ + + + + + \ No newline at end of file