diff --git a/myfatoorah_payment_gateway/README.rst b/myfatoorah_payment_gateway/README.rst new file mode 100644 index 000000000..f8030608d --- /dev/null +++ b/myfatoorah_payment_gateway/README.rst @@ -0,0 +1,42 @@ +MyFatoorah Payment Gateway +=========================== +* MyFatoorah Payment Gateway For Odoo 16 + +Installation +============ + - www.odoo.com/documentation/16.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/13.0/legal/licenses/licenses.html) + +Company +------- +* 'Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +(v16) Swaroop N P @ Cybrosys + + +Contacts +-------- +* Mail Contact : odoo@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 +========== +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..bc7881c34 --- /dev/null +++ b/myfatoorah_payment_gateway/__init__.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-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 setup_provider, reset_payment_provider + + +def post_init_hook(cr, registry): + setup_provider(cr, registry, 'myfatoorah') + + +def uninstall_hook(cr, registry): + reset_payment_provider(cr, registry, 'myfatoorah') \ No newline at end of file diff --git a/myfatoorah_payment_gateway/__manifest__.py b/myfatoorah_payment_gateway/__manifest__.py new file mode 100644 index 000000000..9a1909017 --- /dev/null +++ b/myfatoorah_payment_gateway/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-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': 'MyFatoorah Payment Gateway', + 'category': 'Accounting/Payment Acquirers', + 'version': '16.0.1.0.0', + 'description': """MyFatoorah Payment Gateway V16""", + 'Summary': """MyFatoorah Payment Gateway V16""", + 'author': "Cybrosys Techno Solutions", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['payment', 'account', 'website', 'website_sale'], + 'data': [ + 'views/payment_template.xml', + 'views/payment_myfatoorah_templates.xml', + 'views/myfatoorah_payment_template.xml', + 'data/payment_provider_data.xml', + ], + 'post_init_hook': 'post_init_hook', + 'uninstall_hook': 'uninstall_hook', + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'application': True, + '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..79daee396 --- /dev/null +++ b/myfatoorah_payment_gateway/controllers/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-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 main diff --git a/myfatoorah_payment_gateway/controllers/main.py b/myfatoorah_payment_gateway/controllers/main.py new file mode 100644 index 000000000..b9a6d3a4c --- /dev/null +++ b/myfatoorah_payment_gateway/controllers/main.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-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 +import json +import requests +from odoo import http +from odoo.http import request +import ast + +_logger = logging.getLogger(__name__) + + +class PaymentMyFatoorahController(http.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): + 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): + _logger.info("Received MyFatoorah return data:\n%s", + pprint.pformat(data)) + tx_sudo = request.env[ + 'payment.transaction'].sudo()._get_tx_from_notification_data( + 'myfatoorah', data) + tx_sudo._handle_notification_data('myfatoorah', data) + return request.redirect('/payment/status') + + @http.route('/payment/myfatoorah/failed', type='http', auth='user', + website=True, ) + def payment_failed(self, redirect=None): + 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..eca9b4dad --- /dev/null +++ b/myfatoorah_payment_gateway/data/payment_provider_data.xml @@ -0,0 +1,11 @@ + + + MyFatoorah + myfatoorah + + + + + + \ No newline at end of file diff --git a/myfatoorah_payment_gateway/doc/RELEASE_NOTES.md b/myfatoorah_payment_gateway/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..373fee121 --- /dev/null +++ b/myfatoorah_payment_gateway/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 28.12.2022 +#### Version 16.0.1.0.0 +#### ADD +Initial Commit + diff --git a/myfatoorah_payment_gateway/models/__init__.py b/myfatoorah_payment_gateway/models/__init__.py new file mode 100644 index 000000000..362545670 --- /dev/null +++ b/myfatoorah_payment_gateway/models/__init__.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-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_provider +from . import payment_transaction + + diff --git a/myfatoorah_payment_gateway/models/payment_provider.py b/myfatoorah_payment_gateway/models/payment_provider.py new file mode 100644 index 000000000..4fc86fa07 --- /dev/null +++ b/myfatoorah_payment_gateway/models/payment_provider.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-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 fields, models, api, _ + + +class PaymentProvider(models.Model): + _inherit = 'payment.provider' + + code = fields.Selection( + selection_add=[('myfatoorah', "MyFatoorah")], + ondelete={'myfatoorah': 'set default'} + ) + myfatoorah_token = fields.Char(string='Token') + + @api.model + def _get_payment_method_information(self): + res = super()._get_payment_method_information() + res['mfatoorah'] = {'mode': 'unique', 'domain': [('type', '=', 'bank')]} + return res + + 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': + return 'https://api.myfatoorah.com/' + else: + return 'https://apitest.myfatoorah.com/' diff --git a/myfatoorah_payment_gateway/models/payment_transaction.py b/myfatoorah_payment_gateway/models/payment_transaction.py new file mode 100644 index 000000000..ee5ed7680 --- /dev/null +++ b/myfatoorah_payment_gateway/models/payment_transaction.py @@ -0,0 +1,158 @@ +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-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 + +from werkzeug import urls + +from odoo import _, api, fields, models +from odoo.exceptions import ValidationError + +from odoo.addons.payment import utils as payment_utils +from odoo.http import request +# Import required libraries (make sure it is installed!) +import requests +import json +import sys + +_logger = logging.getLogger(__name__) + + +class PaymentTransaction(models.Model): + _inherit = 'payment.transaction' + + def _get_specific_rendering_values(self, processing_values): + res = super()._get_specific_rendering_values(processing_values) + if self.provider_code != 'myfatoorah': + return res + return self.execute_payment() + + def execute_payment(self): + """Fetching data and Executing Payment""" + base_api_url = self.env['payment.provider'].search( + [('code', '=', 'myfatoorah')])._myfatoorah_get_api_url() + api_url = f"{base_api_url}v2/ExecutePayment" + api_key = self.env['payment.provider'].search([('code', '=', + 'myfatoorah')]).myfatoorah_token + odoo_base_url = self.env['ir.config_parameter'].get_param( + 'web.base.url') + sale_order = self.env['payment.transaction'].search( + [('id', '=', self.id)]).sale_order_ids + + order_line = self.env['payment.transaction'].search( + [('id', '=', self.id)]).sale_order_ids.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": 4, + "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/failed", + "Language": "en", + "CustomerReference": self.reference, + "CustomerAddress": { + "Address": f'{self.partner_address} ,{self.partner_city} {self.partner_zip} ,{self.partner_state_id.name} ,{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_notification_data(self, provider_code, notification_data): + """Getting payment status from myfatoorah""" + api_key = self.env['payment.provider'].search( + [('code', '=', 'myfatoorah')]).myfatoorah_token + base_api_url = self.env['payment.provider'].search( + [('code', '=', '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() + tx = super()._get_tx_from_notification_data(provider_code, + notification_data) + if provider_code != 'myfatoorah' or len(tx) == 1: + return tx + reference = response_data["Data"]["CustomerReference"] + tx = self.search( + [ + ('reference', '=', reference), + ('provider_code', '=', 'myfatoorah')]) + if not tx: + raise ValidationError( + "myfatoorah: " + _( + "No transaction found matching reference %s.", + reference) + ) + return tx + + def _handle_notification_data(self, provider_code, notification_data): + + tx = self._get_tx_from_notification_data(provider_code, + notification_data) + tx._process_notification_data(notification_data) + tx._execute_callback() + return tx + + def _process_notification_data(self, notification_data): + super()._process_notification_data(notification_data) + if self.provider_code != 'myfatoorah': + return + else: + 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..c8e85f51d 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/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..5238bdeab 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..1ae7cfe3b 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..3c3ff1afb 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..3fae4631e 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.gif b/myfatoorah_payment_gateway/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/5.gif 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..7f2815273 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/modules/gantt_image.png b/myfatoorah_payment_gateway/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/gantt_image.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/modules/hide_menu_image.png b/myfatoorah_payment_gateway/static/description/assets/modules/hide_menu_image.png new file mode 100644 index 000000000..6bc155887 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/hide_menu_image.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/modules/laundry_image.png b/myfatoorah_payment_gateway/static/description/assets/modules/laundry_image.png new file mode 100644 index 000000000..026ca78d3 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/laundry_image.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/modules/list_view_image.png b/myfatoorah_payment_gateway/static/description/assets/modules/list_view_image.png new file mode 100644 index 000000000..cb3435fe7 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/list_view_image.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/modules/print_image.png b/myfatoorah_payment_gateway/static/description/assets/modules/print_image.png new file mode 100644 index 000000000..8d5c3ea3f Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/print_image.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/screenshot1.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..9476833ea Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot1.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot2.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..dbc7d3f4f Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot2.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot3.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..a93168119 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot3.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot4.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot4.png new file mode 100644 index 000000000..c5f46e81a Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot4.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot5.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot5.png new file mode 100644 index 000000000..22a855daa Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot5.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot6.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot6.png new file mode 100644 index 000000000..4d74d0047 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot6.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..991fc77ec 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..6cc98b381 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..317bbcd7d --- /dev/null +++ b/myfatoorah_payment_gateway/static/description/index.html @@ -0,0 +1,577 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ + + +

MyFatoorah Payment Gateway

+

This module allows us to enable MyFatoorah payment acquirer on our system

+ + + +
+ + +
+
+ +
+

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
This module allows us to add and enable MyFatoorah payment acquirer on our website.
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ +
+ Enable MyFatoorah Payment Provider + You can enable MyFatoorah payment provider and provide the API token and Publish it. +
+
+ +
+ +
+ Choose Payment Journal + You Can Choose a Payment Journal +
+
+ +
+
+
+ +
+ Details Confirmation Page + When clicked on the pay now button We will be rediredcted to the payment page which shows details regarding the payment. +
+
+
+ +
+ Myfatoorah payment page + Once clicked on confirm we will be redirected to payment the payment portal , We can provide the card detais and click on pay. +
+
+ +
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Enable MyFatoorah Payment Provider

+

You can enable MyFatoorah payment provider and provide the API token and Publish it, or we can use the test mode for testing purpose.

+ +
+ +
+

Redirected to confirmation page after clicking pay now

+

Once we click on the Pay Now Button we will be redirected th confirmation page where can can see the details like Customer Name, Address, Mobile Number, Currency, and total Invoice amount.We can click on Confirm button to move forward to the payment page.

+ +
+
+

+

+ +
+ +
+

MyFatorah Payment page

+

This is MyFatoorah payment portal here we can provide our card details like Name, Card number, Expiry date, and the 3 digit security number

+ +
+ + +
+

Redirected to payment status page after successful redirect

+

If the payment was successful we will be redirected to payment status page.

+ +
+ +
+

Redirected to payment Failed page after payment fails

+

If the payment is failed we will be redirected to payment failed page. And we can try the payment again.

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

Related + 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

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

Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/myfatoorah_payment_gateway/views/myfatoorah_payment_template.xml b/myfatoorah_payment_gateway/views/myfatoorah_payment_template.xml new file mode 100644 index 000000000..840f834e5 --- /dev/null +++ b/myfatoorah_payment_gateway/views/myfatoorah_payment_template.xml @@ -0,0 +1,119 @@ + + + + + + + + + \ No newline at end of file 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..83955c59f --- /dev/null +++ b/myfatoorah_payment_gateway/views/payment_myfatoorah_templates.xml @@ -0,0 +1,23 @@ + + + + + + diff --git a/myfatoorah_payment_gateway/views/payment_template.xml b/myfatoorah_payment_gateway/views/payment_template.xml new file mode 100644 index 000000000..2fd2994f1 --- /dev/null +++ b/myfatoorah_payment_gateway/views/payment_template.xml @@ -0,0 +1,17 @@ + + + + MyFathoorah Provider Form + payment.provider + + + + + + + + + +