diff --git a/myfatoorah_payment_gateway/README.rst b/myfatoorah_payment_gateway/README.rst new file mode 100644 index 000000000..c20931e79 --- /dev/null +++ b/myfatoorah_payment_gateway/README.rst @@ -0,0 +1,56 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +MyFatoorah Payment Gateway +=========================== + +* This module helps users to pay online through MyFatoorah payment gateway from Odoo Website. + +Installation +============ + +- www.odoo.com/documentation/15.0/setup/install.html +- Install our custom addon + +Features +======== + +* Easily pay for the website order in odoo through MyFatoorah payment gateway. +* Myfatoorah is a fast and reliable payment gateway and can make payment by entering card details online. +* Install the app , provide the token and make the payment. + +Company +======= +* `Cybrosys Techno Solutions `__ + +License +======= +GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +======= +* Developer: (V15) Subina P, 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 https://www.cybrosys.com. + +Further information +=================== +HTML Description: ``__ diff --git a/myfatoorah_payment_gateway/__init__.py b/myfatoorah_payment_gateway/__init__.py new file mode 100644 index 000000000..8e1f309b1 --- /dev/null +++ b/myfatoorah_payment_gateway/__init__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Subina P() +# +# You can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +from odoo import api, SUPERUSER_ID +from odoo.addons.payment import reset_payment_acquirer +from . import controllers +from . import models + + +def post_init_hook(cr, registry): + """Change the 'provider' field to 'myfatoorah' on installation of the + provider""" + env = api.Environment(cr, SUPERUSER_ID, {}) + acquirer_model = env['payment.acquirer'] + acquirer = acquirer_model.search([('provider', '=', 'myfatoorah')], limit=1) + if not acquirer: + acquirer_model.create({ + 'name': 'MyFatoorah', + 'provider': 'myfatoorah', + }) + + +def uninstall_hook(cr, registry): + """Unlinks the payment provider from model on uninstallation of the + module""" + reset_payment_acquirer(cr, registry, 'myfatoorah') diff --git a/myfatoorah_payment_gateway/__manifest__.py b/myfatoorah_payment_gateway/__manifest__.py new file mode 100644 index 000000000..eb6d93d19 --- /dev/null +++ b/myfatoorah_payment_gateway/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Subina P() +# +# You can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': 'MyFatoorah Payment Gateway', + 'version': '15.0.1.0.0', + 'category': 'Accounting', + 'Summary': """Payment Acquirer: MyFatoorah Payment Implementation""", + 'description': """Pay for the website orders in Odoo through MyFatoorah + Payment Acquirer.""", + 'author': "Cybrosys Techno Solutions", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['payment', 'website_sale'], + 'data': [ + 'views/payment_myfatoorah_templates.xml', + 'views/payment_acquirer_views.xml', + 'views/myfatoorah_payment_templates.xml', + 'data/payment_provider_data.xml' + ], + 'post_init_hook': 'post_init_hook', + 'uninstall_hook': 'uninstall_hook', + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/myfatoorah_payment_gateway/controllers/__init__.py b/myfatoorah_payment_gateway/controllers/__init__.py new file mode 100644 index 000000000..30fac4c94 --- /dev/null +++ b/myfatoorah_payment_gateway/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Subina P() +# +# You can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +from . import myfatoorah_payment_gateway diff --git a/myfatoorah_payment_gateway/controllers/myfatoorah_payment_gateway.py b/myfatoorah_payment_gateway/controllers/myfatoorah_payment_gateway.py new file mode 100644 index 000000000..8b91e0443 --- /dev/null +++ b/myfatoorah_payment_gateway/controllers/myfatoorah_payment_gateway.py @@ -0,0 +1,74 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Subina P() +# +# You can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +import ast +import logging +import pprint +from odoo import http +from odoo.http import request + +_logger = logging.getLogger(__name__) + + +class PaymentMyFatoorahController(http.Controller): + """MyFatoorah payment acquirer controller""" + _return_url = '/payment/myfatoorah/_return_url' + + @http.route('/payment/myfatoorah/response', type='http', + auth='public', website=True, methods=['POST'], csrf=False, + save_session=False) + def myfatoorah_payment_response(self, **data): + + """This route is called to send response for the payment requested.""" + payment_data = ast.literal_eval(data["data"]) + vals = { + 'customer': payment_data["CustomerName"], + 'currency': payment_data["DisplayCurrencyIso"], + 'mobile': payment_data["CustomerMobile"], + 'invoice_amount': payment_data["InvoiceValue"], + 'address': payment_data["CustomerAddress"]["Address"], + 'payment_url': payment_data["PaymentURL"], + } + return request.render( + "myfatoorah_payment_gateway.myfatoorah_payment_gateway_form", vals) + + @http.route(_return_url, type='http', auth='public', + methods=['GET']) + def myfatoorah__checkout(self, **data): + + """This route is called to return the url to redirect to the checkout + page of payment.""" + + _logger.info("Received MyFatoorah return data:\n%s", + pprint.pformat(data)) + tx_sudo = request.env[ + 'payment.transaction'].sudo()._get_tx_from_feedback_data( + 'myfatoorah', data) + tx_sudo._handle_feedback_data('myfatoorah', data) + return request.redirect('/payment/status') + + @http.route('/payment/myfatoorah/failed', type='http', auth='user', + website=True, ) + def payment_failed(self): + """This route is called to redirect to the payment failed page, + if the payment is failed.""" + return request.render( + "myfatoorah_payment_gateway.myfatoorah_payment_gateway_failed_form") diff --git a/myfatoorah_payment_gateway/data/payment_provider_data.xml b/myfatoorah_payment_gateway/data/payment_provider_data.xml new file mode 100644 index 000000000..79d4a44ea --- /dev/null +++ b/myfatoorah_payment_gateway/data/payment_provider_data.xml @@ -0,0 +1,16 @@ + + + + + MyFatoorah + myfatoorah + + + + + + MyFatoorah + myfatoorah + inbound + + diff --git a/myfatoorah_payment_gateway/doc/RELEASE_NOTES.md b/myfatoorah_payment_gateway/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..c7345859f --- /dev/null +++ b/myfatoorah_payment_gateway/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 08.12.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for MyFatoorah Payment Gateway diff --git a/myfatoorah_payment_gateway/models/__init__.py b/myfatoorah_payment_gateway/models/__init__.py new file mode 100644 index 000000000..a5992fe95 --- /dev/null +++ b/myfatoorah_payment_gateway/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Subina P() +# +# You can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +from . import payment_acquirer +from . import payment_transaction +from . import account_payment_method diff --git a/myfatoorah_payment_gateway/models/account_payment_method.py b/myfatoorah_payment_gateway/models/account_payment_method.py new file mode 100644 index 000000000..828ff13a1 --- /dev/null +++ b/myfatoorah_payment_gateway/models/account_payment_method.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Subina P() +# +# You can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +from odoo import api, models + + +class AccountPaymentMethod(models.Model): + _inherit = 'account.payment.method' + + @api.model + def _get_payment_method_information(self): + """Fetch the payment method details""" + res = super()._get_payment_method_information() + res['myfatoorah'] = {'mode': 'unique', + 'domain': [('type', '=', 'bank')]} + return res diff --git a/myfatoorah_payment_gateway/models/payment_acquirer.py b/myfatoorah_payment_gateway/models/payment_acquirer.py new file mode 100644 index 000000000..8d77d7335 --- /dev/null +++ b/myfatoorah_payment_gateway/models/payment_acquirer.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Subina P() +# +# You can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +from odoo import fields, models +from odoo.exceptions import ValidationError + + +class PaymentAcquirer(models.Model): + """New fields are added in payment_acquirer model and compute payment + information.""" + _inherit = 'payment.acquirer' + + provider = fields.Selection( + string="Provider", + selection_add=[('myfatoorah', "MyFatoorah")], + ondelete={'myfatoorah': 'set default'}, + help="Selection value myfatoorah is added to specify the payment " + "provider") + myfatoorah_token = fields.Char(string='Token', + help="Token of Myfatoorah payment gateway") + + def _myfatoorah_get_api_url(self): + """ Return the API URL according to the provider state. + Note: self.ensure_one() + :return: The API URL + :rtype: str + """ + self.ensure_one() + if self.state == 'enabled': + raise ValidationError( + "API URL cannot be retrieved when state is 'enabled'.") + return 'https://apitest.myfatoorah.com/' + + def _get_default_payment_method_id(self): + """ To get default payment method""" + self.ensure_one() + if self.provider != 'myfatoorah': + return super()._get_default_payment_method_id() + return (self.env.ref + ('myfatoorah_payment_gateway.payment_method_fatoorah').id) diff --git a/myfatoorah_payment_gateway/models/payment_transaction.py b/myfatoorah_payment_gateway/models/payment_transaction.py new file mode 100644 index 000000000..612a6b9fb --- /dev/null +++ b/myfatoorah_payment_gateway/models/payment_transaction.py @@ -0,0 +1,151 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Subina P() +# +# You can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +import json +import logging +import requests +from odoo import _, models +from odoo.exceptions import ValidationError + +_logger = logging.getLogger(__name__) + + +class PaymentTransaction(models.Model): + """Model is inherited to define functon to execute different payment + operations for MyFatoorah payment acquirer.""" + _inherit = 'payment.transaction' + + def _get_specific_rendering_values(self, processing_values): + """Get payment rendering values and execute payment operation""" + res = super()._get_specific_rendering_values(processing_values) + if self.provider != 'myfatoorah': + return res + return self.execute_payment() + + def execute_payment(self): + """Fetching data and Executing Payment""" + base_api_url = self.env['payment.acquirer'].search( + [('provider', '=', 'myfatoorah')])._myfatoorah_get_api_url() + api_url = f"{base_api_url}v2/ExecutePayment" + api_key = (self.env['payment.acquirer']. + search([('provider', '=', 'myfatoorah')]).myfatoorah_token) + odoo_base_url = self.env['ir.config_parameter'].get_param( + 'web.base.url') + payment_transaction = self + sale_order = payment_transaction.sale_order_ids + order_line = sale_order.order_line + invoice_items = [ + { + 'ItemName': rec.product_id.name, + 'Quantity': int(rec.product_uom_qty), + 'UnitPrice': rec.price_unit, + } + for rec in order_line + ] + if len(self.partner_phone.replace('-', "").rsplit(' ', 1)[1]) > 11: + raise ValidationError(_("Phone number must not be greater than " + "11 characters")) + payment_details = { + "PaymentMethodId": 6, + "CustomerName": self.partner_name, + "DisplayCurrencyIso": self.currency_id.name, + "CustomerMobile": + self.partner_phone.replace('-', "").rsplit(' ', 1)[1], + "CustomerEmail": self.partner_email, + "InvoiceValue": (self.amount - sale_order.amount_tax), + "CallBackUrl": f"{odoo_base_url}/payment/myfatoorah/_return_url", + "ErrorUrl": f"{odoo_base_url}/payment/myfatoorah/_return_url", + "Language": "en", + "CustomerReference": self.reference, + "CustomerAddress": { + "Address": f'{self.partner_address}, {self.partner_city}, ' + f'{self.partner_zip}, {self.partner_state_id.name}, ' + f'{self.partner_country_id.name}', + }, + "InvoiceItems": + invoice_items + } + headers = { + 'Content-Type': 'application/json', + 'Accept': 'application/json', + 'Authorization': f'Bearer {api_key}', + } + payload = json.dumps(payment_details) + response = requests.request("POST", api_url, headers=headers, + data=payload) + response_data = response.json() + payment_url = response_data.get('Data')['PaymentURL'] + payment_details['PaymentURL'] = payment_url + return { + 'api_url': f"{odoo_base_url}/payment/myfatoorah/response", + 'data': payment_details, + } + + def _get_tx_from_feedback_data(self, provider, notification_data): + """Getting payment status from myfatoorah""" + api_key = self.env['payment.acquirer'].search( + [('provider', '=', 'myfatoorah')]).myfatoorah_token + base_api_url = self.env['payment.acquirer'].search( + [('provider', '=', 'myfatoorah')])._myfatoorah_get_api_url() + url = f"{base_api_url}v2/GetPaymentStatus" + paymentid = notification_data.get('paymentId') + payload = json.dumps({ + "Key": f"{paymentid}", + "KeyType": "paymentId" + }) + headers = { + 'Content-Type': 'application/json', + 'Accept': 'application/json', + 'Authorization': f'Bearer {api_key}', + } + response = requests.request("POST", url, headers=headers, + data=payload) + response_data = response.json() + received_tx = super()._get_tx_from_feedback_data('myfatoorah', + notification_data) + if provider != 'myfatoorah' or len(received_tx) == 1: + return received_tx + reference = response_data["Data"]["CustomerReference"] + received_tx = self.search( + [ + ('reference', '=', reference), + ('provider', '=', 'myfatoorah')]) + if not received_tx: + raise ValidationError( + "myfatoorah: " + _( + "No transaction found matching reference %s.", + reference) + ) + return received_tx + + def _handle_feedback_data(self, provider, notification_data): + """Handle notification data and execute callback""" + received_tx = self._get_tx_from_feedback_data(provider, + notification_data) + received_tx._process_feedback_data(notification_data) + received_tx._execute_callback() + return received_tx + + def _process_feedback_data(self, notification_data): + """Process the notification data.""" + super()._process_feedback_data(notification_data) + if self.provider == 'myfatoorah': + self._set_done() diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/check.png b/myfatoorah_payment_gateway/static/description/assets/icons/check.png new file mode 100644 index 000000000..e9d54a8f5 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/check.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/chevron.png b/myfatoorah_payment_gateway/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/chevron.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/cogs.png b/myfatoorah_payment_gateway/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/cogs.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/consultation.png b/myfatoorah_payment_gateway/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/consultation.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/ecom-black.png b/myfatoorah_payment_gateway/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/ecom-black.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/education-black.png b/myfatoorah_payment_gateway/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/education-black.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/hotel-black.png b/myfatoorah_payment_gateway/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/hotel-black.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/license.png b/myfatoorah_payment_gateway/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/license.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/lifebuoy.png b/myfatoorah_payment_gateway/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/lifebuoy.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/logo.png b/myfatoorah_payment_gateway/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/logo.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/manufacturing-black.png b/myfatoorah_payment_gateway/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/manufacturing-black.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/pos-black.png b/myfatoorah_payment_gateway/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/pos-black.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/puzzle.png b/myfatoorah_payment_gateway/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/puzzle.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/restaurant-black.png b/myfatoorah_payment_gateway/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/restaurant-black.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/service-black.png b/myfatoorah_payment_gateway/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/service-black.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/trading-black.png b/myfatoorah_payment_gateway/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/trading-black.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/training.png b/myfatoorah_payment_gateway/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/training.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/update.png b/myfatoorah_payment_gateway/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/update.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/user.png b/myfatoorah_payment_gateway/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/user.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/icons/wrench.png b/myfatoorah_payment_gateway/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/wrench.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/categories.png b/myfatoorah_payment_gateway/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/categories.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/check-box.png b/myfatoorah_payment_gateway/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/check-box.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/compass.png b/myfatoorah_payment_gateway/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/compass.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/corporate.png b/myfatoorah_payment_gateway/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/corporate.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/customer-support.png b/myfatoorah_payment_gateway/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/customer-support.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/cybrosys-logo.png b/myfatoorah_payment_gateway/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/cybrosys-logo.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/features.png b/myfatoorah_payment_gateway/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/features.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/logo.png b/myfatoorah_payment_gateway/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/logo.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/pictures.png b/myfatoorah_payment_gateway/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/pictures.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/pie-chart.png b/myfatoorah_payment_gateway/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/pie-chart.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/right-arrow.png b/myfatoorah_payment_gateway/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/right-arrow.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/star.png b/myfatoorah_payment_gateway/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/star.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/support.png b/myfatoorah_payment_gateway/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/support.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/whatsapp.png b/myfatoorah_payment_gateway/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/whatsapp.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/modules/1.png b/myfatoorah_payment_gateway/static/description/assets/modules/1.png new file mode 100644 index 000000000..f3038d908 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/1.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/modules/2.png b/myfatoorah_payment_gateway/static/description/assets/modules/2.png new file mode 100644 index 000000000..038886630 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/2.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/modules/3.png b/myfatoorah_payment_gateway/static/description/assets/modules/3.png new file mode 100644 index 000000000..70f9f2026 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/3.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/modules/4.png b/myfatoorah_payment_gateway/static/description/assets/modules/4.png new file mode 100644 index 000000000..309a9ab64 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/4.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/modules/5.png b/myfatoorah_payment_gateway/static/description/assets/modules/5.png new file mode 100644 index 000000000..fd1059dec Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/5.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/modules/6.png b/myfatoorah_payment_gateway/static/description/assets/modules/6.png new file mode 100644 index 000000000..6c38c9e40 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/6.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/hero.gif b/myfatoorah_payment_gateway/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..f7c5e4a67 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/hero.gif differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/image_1.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_1.png new file mode 100644 index 000000000..95b6f4646 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_1.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/image_2.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_2.png new file mode 100644 index 000000000..d9f816d43 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_2.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/image_3.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_3.png new file mode 100644 index 000000000..de8404534 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_3.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/image_4.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_4.png new file mode 100644 index 000000000..54e2b6b7b Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_4.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/image_5.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_5.png new file mode 100644 index 000000000..f5c4a2e2a Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_5.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/image_6.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_6.png new file mode 100644 index 000000000..2373259d6 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_6.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/image_7.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_7.png new file mode 100644 index 000000000..e211dc38f Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_7.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/image_8.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_8.png new file mode 100644 index 000000000..ec6d286c6 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_8.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/image_9.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_9.png new file mode 100644 index 000000000..960e47cba Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/image_9.png differ diff --git a/myfatoorah_payment_gateway/static/description/banner.png b/myfatoorah_payment_gateway/static/description/banner.png new file mode 100644 index 000000000..cd4ea52f8 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/banner.png differ diff --git a/myfatoorah_payment_gateway/static/description/icon.png b/myfatoorah_payment_gateway/static/description/icon.png new file mode 100644 index 000000000..7282a96ac Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/icon.png differ diff --git a/myfatoorah_payment_gateway/static/description/index.html b/myfatoorah_payment_gateway/static/description/index.html new file mode 100644 index 000000000..8582d1fa0 --- /dev/null +++ b/myfatoorah_payment_gateway/static/description/index.html @@ -0,0 +1,619 @@ + +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+ +
+
+
+

+ MyFatoorah Payment Gateway

+

+ Pay Online For Website Orders Through MyFatoorah Payment Gateway +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ This module helps users to pay online through MyFatoorah payment gateway from Odoo Website. +

+ +
+
+ +
+
+ +
+

Features +

+
+
+
+
+ + Available in Odoo 15.0 Community, Enterprise and Odoo.sh +
+
+ + Easily pay for the website order in odoo through MyFatoorah payment gateway. +
+
+ + Myfatoorah is a fast and reliable payment gateway and can make payment by entering card details online. +
+ +
+
+ +
+
+

+ Screenshots +

+
+
+

+ Go to Website > Configuration > Payment Acquirers

+ +
+ +
+

+ Payment Acquirer Kanban View

+ +
+ +
+

+ Payment Acquirer Form View

+

+ Enable the payment acquirer and provide the token for payment. +
+ Test tokens are available in myfatoorah website docs page. +

+ +
+ +
+

+ Website shop

+ +
+ +
+

+ In the Payment section choose Myfatoorah Payment Acquirer and click on Pay Now.

+ +
+ +
+

+ Order details will be automatically added to Payment Form.

+ +
+ +
+

+ Provide the card details.

+ +
+ +
+

+ Complete the payment by providing the details.

+ +
+
+

+ After completing the payment, It will be redirected to the odoo 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?

+
+
+
+ + +
+ +
+ +
+ +
+ WhatsApp +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/myfatoorah_payment_gateway/views/myfatoorah_payment_templates.xml b/myfatoorah_payment_gateway/views/myfatoorah_payment_templates.xml new file mode 100644 index 000000000..ff85f2938 --- /dev/null +++ b/myfatoorah_payment_gateway/views/myfatoorah_payment_templates.xml @@ -0,0 +1,107 @@ + + + + + + + diff --git a/myfatoorah_payment_gateway/views/payment_acquirer_views.xml b/myfatoorah_payment_gateway/views/payment_acquirer_views.xml new file mode 100644 index 000000000..65d3f7cc6 --- /dev/null +++ b/myfatoorah_payment_gateway/views/payment_acquirer_views.xml @@ -0,0 +1,20 @@ + + + + + payment.acquirer.view.form.inherit.myfatoorah.payment.gateway + payment.acquirer + + + + + + + + + + + + diff --git a/myfatoorah_payment_gateway/views/payment_myfatoorah_templates.xml b/myfatoorah_payment_gateway/views/payment_myfatoorah_templates.xml new file mode 100644 index 000000000..aa78838e8 --- /dev/null +++ b/myfatoorah_payment_gateway/views/payment_myfatoorah_templates.xml @@ -0,0 +1,23 @@ + + + + +