diff --git a/myfatoorah_payment_gateway/README.rst b/myfatoorah_payment_gateway/README.rst new file mode 100644 index 000000000..cd456c7d6 --- /dev/null +++ b/myfatoorah_payment_gateway/README.rst @@ -0,0 +1,42 @@ +.. 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 + +MyFatroorah Payment Gateway +=========================== +*MyFatroorah Payment Gateway For Odoo 17 + +License +------- +General Public License, Version 3 (LGPL-3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: (V17) Subina 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/myfatoorah_payment_gateway/__init__.py b/myfatoorah_payment_gateway/__init__.py new file mode 100644 index 000000000..b9e71fbb2 --- /dev/null +++ b/myfatoorah_payment_gateway/__init__.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Subina (odoo@cybrosys.com) +# +# 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(env): + setup_provider(env, 'myfatoorah') + + +def uninstall_hook(env): + reset_payment_provider(env, 'myfatoorah') diff --git a/myfatoorah_payment_gateway/__manifest__.py b/myfatoorah_payment_gateway/__manifest__.py new file mode 100644 index 000000000..42cb8544e --- /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 (odoo@cybrosys.com) +# +# 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': '17.0.1.0.0', + 'description': """MyFatoorah Payment Gateway""", + 'Summary': """Payment Provider : MyFatoorah """, + '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_myfatoorah_templates.xml', + 'data/payment_method_data.xml', + 'data/payment_provider_data.xml', + 'views/payment_template.xml', + 'views/myfatoorah_payment_template.xml', + ], + 'post_init_hook': 'post_init_hook', + 'uninstall_hook': 'uninstall_hook', + 'images': ['static/description/banner.jpg'], + '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..db54c3619 --- /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 (odoo@cybrosys.com) +# +# 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 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..f5061d17b --- /dev/null +++ b/myfatoorah_payment_gateway/controllers/myfatoorah_payment_gateway.py @@ -0,0 +1,70 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Subina (odoo@cybrosys.com) +# +# 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 +import ast + +_logger = logging.getLogger(__name__) + + +class PaymentMyFatoorahController(http.Controller): + """ Instance for the myfatoorah 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): + """Function to get the payment response""" + + 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["InvoiceURL"], + } + 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): + """ Function to redirect to the payment checkout""" + _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): + """ Function to render the payment failed cases""" + return request.render( + "myfatoorah_payment_gateway.myfatoorah_payment_gateway_failed_form") diff --git a/myfatoorah_payment_gateway/data/payment_method_data.xml b/myfatoorah_payment_gateway/data/payment_method_data.xml new file mode 100644 index 000000000..d65c2875a --- /dev/null +++ b/myfatoorah_payment_gateway/data/payment_method_data.xml @@ -0,0 +1,15 @@ + + + + + Myfatoorah + myfatoorah + + 2 + True + False + partial + + 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..b6ca36b66 --- /dev/null +++ b/myfatoorah_payment_gateway/data/payment_provider_data.xml @@ -0,0 +1,13 @@ + + + + MyFatoorah + myfatoorah + + + + + + diff --git a/myfatoorah_payment_gateway/doc/RELEASE_NOTES.md b/myfatoorah_payment_gateway/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..b1dd465fa --- /dev/null +++ b/myfatoorah_payment_gateway/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 29.12.2023 +#### Version 17.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..49a7f2995 --- /dev/null +++ b/myfatoorah_payment_gateway/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Subina (odoo@cybrosys.com) +# +# 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..7f0ea87f3 --- /dev/null +++ b/myfatoorah_payment_gateway/models/payment_provider.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Subina (odoo@cybrosys.com) +# +# 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): + """ Inherited class of payment provider to add myfatoorah functions""" + _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): + """ Override method to add MyFatoorah payment method information.""" + 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..e28ef89e3 --- /dev/null +++ b/myfatoorah_payment_gateway/models/payment_transaction.py @@ -0,0 +1,156 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Subina (odoo@cybrosys.com) +# +# 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 required libraries (make sure it is installed!) +import logging +from odoo import _, models +from odoo.exceptions import ValidationError +import requests +import json + +_logger = logging.getLogger(__name__) + + +class PaymentTransaction(models.Model): + """Inherited class of payment transaction to add MyFatoorah functions.""" + _inherit = 'payment.transaction' + + def _get_specific_rendering_values(self, processing_values): + """ Function to fetch the values of the payment gateway""" + res = super()._get_specific_rendering_values(processing_values) + if self.provider_code != 'myfatoorah': + return res + return self.send_payment() + + def send_payment(self): + """Send payment information to MyFatoorah for processing.""" + base_api_url = self.env['payment.provider'].search([('code', '=', 'myfatoorah')])._myfatoorah_get_api_url() + api_url = f"{base_api_url}v2/SendPayment" + 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 + MobileCountryCode = self.partner_id.country_id.phone_code + phone_number = self.partner_phone + if not phone_number: + raise ValueError("Please provide the phone number.") + else: + phone_number = phone_number.replace(str(MobileCountryCode), '') + if phone_number.startswith('+'): + phone_number = phone_number[1:] + elif not phone_number: + raise ValueError( + "Please provide the phone number in proper format") + currency = self.env.company.currency_id.name + sendpay_data = { + "NotificationOption": "ALL", + "CustomerName": self.partner_name, + "DisplayCurrencyIso": currency, + "MobileCountryCode": MobileCountryCode, + "CustomerMobile": phone_number, + "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} ' + f'{self.partner_zip} ,{self.partner_state_id.name} ,' + f'{self.partner_country_id.name}', + }, + } + headers = { + 'Content-Type': 'application/json', + 'Accept': 'application/json', + 'Authorization': f'Bearer {api_key}', + } + payload = json.dumps(sendpay_data) + response = requests.request("POST", api_url, headers=headers, + data=payload) + response_data = response.json() + if not response_data.get('IsSuccess'): + validation_errors = response_data.get('ValidationErrors') + if validation_errors: + error_message = validation_errors[0].get('Error') + raise ValidationError(f"{error_message}") + if response_data.get('Data')['InvoiceURL']: + payment_url = response_data.get('Data')['InvoiceURL'] + sendpay_data['InvoiceURL'] = payment_url + return { + 'api_url': f"{odoo_base_url}/payment/myfatoorah/response", + 'data': sendpay_data, + } + + 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 + domain = [('provider_code', '=', 'myfatoorah')] + reference = "" + if response_data["Data"]["CustomerReference"]: + reference = response_data["Data"]["CustomerReference"] + domain.append(('reference', '=', str(reference))) + if tx := self.search(domain): + return tx + else: + raise ValidationError( + "myfatoorah: " + _( + "No transaction found matching reference %s.", + reference) + ) + + def _handle_notification_data(self, provider_code, notification_data): + """Function to handle the 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): + """ Function to process the 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/capture (1).png b/myfatoorah_payment_gateway/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/capture (1).png differ 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/img.png b/myfatoorah_payment_gateway/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/img.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/photo-capture.png b/myfatoorah_payment_gateway/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/icons/photo-capture.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/Cybrosys R.png b/myfatoorah_payment_gateway/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/misc/Cybrosys R.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/email.svg b/myfatoorah_payment_gateway/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/myfatoorah_payment_gateway/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/phone.svg b/myfatoorah_payment_gateway/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/myfatoorah_payment_gateway/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + 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 (1) 2.svg b/myfatoorah_payment_gateway/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/myfatoorah_payment_gateway/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + 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 (1) 1.svg b/myfatoorah_payment_gateway/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/myfatoorah_payment_gateway/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/support-email.svg b/myfatoorah_payment_gateway/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/myfatoorah_payment_gateway/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + 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/tick-mark.svg b/myfatoorah_payment_gateway/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/myfatoorah_payment_gateway/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/myfatoorah_payment_gateway/static/description/assets/misc/whatsapp 1.svg b/myfatoorah_payment_gateway/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/myfatoorah_payment_gateway/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + 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/misc/whatsapp.svg b/myfatoorah_payment_gateway/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/myfatoorah_payment_gateway/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/myfatoorah_payment_gateway/static/description/assets/modules/1.gif b/myfatoorah_payment_gateway/static/description/assets/modules/1.gif new file mode 100644 index 000000000..beb106101 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/modules/1.gif 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..c6a41b7ec 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..25ed3e0b6 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..ed11bd818 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..5c56f0bcd 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..1c98e213f 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..eb3f8652f 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/fatoora_screenshot1.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_screenshot1.png new file mode 100644 index 000000000..bdd7f1879 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_screenshot1.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_screenshot2.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_screenshot2.png new file mode 100644 index 000000000..6c46c4da6 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_screenshot2.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_screenshot3.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_screenshot3.png new file mode 100644 index 000000000..96564cd16 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_screenshot3.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_screenshot5.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_screenshot5.png new file mode 100644 index 000000000..adab03fd1 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_screenshot5.png differ diff --git a/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_testtoken.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_testtoken.png new file mode 100644 index 000000000..1af750f88 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/fatoora_testtoken.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..fb1986824 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/screenshot4.png b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot4.png new file mode 100644 index 000000000..7fba584a4 Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/assets/screenshots/screenshot4.png differ diff --git a/myfatoorah_payment_gateway/static/description/banner.jpg b/myfatoorah_payment_gateway/static/description/banner.jpg new file mode 100644 index 000000000..07d1694dd Binary files /dev/null and b/myfatoorah_payment_gateway/static/description/banner.jpg 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..3ffe3477d 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..d36db8496 --- /dev/null +++ b/myfatoorah_payment_gateway/static/description/index.html @@ -0,0 +1,776 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ MyFatoorah Payment Gateway

+

+ This module allows us to enable MyFatoorah payment provider on our system +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ 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 method selection page

+

+ Once clicked on confirm we will be redirected to + payment the payment portal , We can provide + the card detais and click on pay.

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

+ Myfatoorah test token

+

+ To get the test token from myfatoorah + + Click Here + +

+
+
+
+
+
+
+ +
+
+

+ Configure the myfatoorah payment provider

+

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

+
+
+
+
+
+
+ +
+
+

+ Redirected to confirmation page

+

+

+
+
+
+
+
+
+ +
+
+

+

+

+ +

+
+
+
+
+
+
+ +
+
+

+ MyFatorah Payment page

+
+
+
+
+
+
+ +
+
+

+ Redirected to payment status page after + successful transaction

+
+
+
+
+
+
+
    +
  • + + Enable MyFatoorah Payment Provider +
  • +
  • + + Can Choose Payment Journal +
  • +
  • + + Details Confirmation Page +
  • +
  • + + Myfatoorah payment method selection page +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:30th December 2023 +
+

+ + Initial Commit for MyFatoorah Payment Gateway

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + 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..3c91bd3ea --- /dev/null +++ b/myfatoorah_payment_gateway/views/myfatoorah_payment_template.xml @@ -0,0 +1,108 @@ + + + + + + + + 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..e695cfc71 --- /dev/null +++ b/myfatoorah_payment_gateway/views/payment_myfatoorah_templates.xml @@ -0,0 +1,22 @@ + + + + + diff --git a/myfatoorah_payment_gateway/views/payment_template.xml b/myfatoorah_payment_gateway/views/payment_template.xml new file mode 100644 index 000000000..45739c202 --- /dev/null +++ b/myfatoorah_payment_gateway/views/payment_template.xml @@ -0,0 +1,18 @@ + + + + + MyFathoorah Provider Form + payment.provider + + + + + + + + + +