diff --git a/safer_pay/README.rst b/safer_pay/README.rst deleted file mode 100644 index 2326e924c..000000000 --- a/safer_pay/README.rst +++ /dev/null @@ -1,48 +0,0 @@ -.. 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 - -Safer-pay Payment Gateway Integration -===================================== -Safer-pay is the modern and secure payment service provider.This Module helps -to integrate Safer-pay Payment Gateway with your eCommerce Website.Hence -Allow us to make payments via Safer-pay Payment Gateway - -Configuration -============= -* Activate Payment provider in invoicing - -Company -------- -* `Cybrosys Techno Solutions `__ - -License -------- -Lesser General Public License, Version 3 (LGPL v3). -(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) - -Credits -------- -Developer: (V16) Fathima Mazlin AM, 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/safer_pay/__init__.py b/safer_pay/__init__.py deleted file mode 100644 index 196a532e4..000000000 --- a/safer_pay/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) -# -# -# This program is free software: you can modify -# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# 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 for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# along with this program. If not, see . -# -############################################################################### -from . import models -from . import controller -from odoo.addons.payment import setup_provider, reset_payment_provider - - -def post_init_hook(cr, registry): - """Functions that will execute after the module installation.""" - setup_provider(cr, registry, 'saferpay') - - -def uninstall_hook(cr, registry): - """Record will be deleted while uninstalling the module""" - reset_payment_provider(cr, registry, 'saferpay') diff --git a/safer_pay/__manifest__.py b/safer_pay/__manifest__.py deleted file mode 100644 index 5606a22d2..000000000 --- a/safer_pay/__manifest__.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) -# -# -# This program is free software: you can modify -# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# 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 for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# along with this program. If not, see . -# -############################################################################### -{ - 'name': "Safer-pay Payment Gateway Integration", - 'version': '16.0.1.0.0', - 'category': 'eCommerce', - 'summary': 'Safer-pay is a payment provider that integrate with odoo', - 'description': 'Safer-pay is a payment provider that integrate with odoo. ' - 'we can done payment through safer pay in ecommerce', - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'maintainer': 'Cybrosys Techno Solutions', - 'website': 'https://www.cybrosys.com', - 'depends': ['account', 'payment', 'website_sale'], - 'data': [ - 'data/payment_provider_data.xml', - 'views/payment_provider_views.xml', - ], - 'assets': { - 'web.assets_frontend': [ - 'safer_pay/static/src/js/payment_form.js', - ], - }, - 'images': ['static/description/banner.jpg'], - 'license': 'LGPL-3', - 'installable': True, - 'auto_install': False, - 'application': False, - 'post_init_hook': 'post_init_hook', - 'uninstall_hook': 'uninstall_hook', -} diff --git a/safer_pay/controller/__init__.py b/safer_pay/controller/__init__.py deleted file mode 100644 index 7fb96a392..000000000 --- a/safer_pay/controller/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) -# -# This program is free software: you can modify -# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# 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 for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# along with this program. If not, see . -# -############################################################################### -from . import safer_pay diff --git a/safer_pay/controller/safer_pay.py b/safer_pay/controller/safer_pay.py deleted file mode 100644 index 35b965311..000000000 --- a/safer_pay/controller/safer_pay.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) -# -# -# This program is free software: you can modify -# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# 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 for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# along with this program. If not, see . -# -############################################################################### -import base64 -import json -import requests -from odoo import http, _ -from odoo.http import request -from odoo.exceptions import UserError - - -class SaferPay(http.Controller): - """For connecting safer pay payment acquirer with odoo """ - - @http.route('/saferpay/payment', type='json', auth='public', website=True) - def saferpay_payment(self, reference): - """ Connect with safer pay payment gateway""" - base_url = request.env['ir.config_parameter'].sudo().get_param( - 'web.base.url') - amount = int((reference.get("amount") * 0.011) * 100) - sequence = reference.get("reference") - order = request.env['sale.order'].sudo().search( - [('name', '=', sequence)]) - provider_details = request.env.ref('safer_pay.payment_acquirer_data') - if provider_details.customer and provider_details.terminal: - credentials = f"{provider_details.username}:{provider_details.password}" - base64_credentials = base64.b64encode( - credentials.encode('utf-8')).decode('utf-8') - authorization_header = f'Basic {base64_credentials}' - url = "https://test.saferpay.com/api/Payment/v1/PaymentPage/Initialize" - payload = json.dumps({ - "RequestHeader": { - "SpecVersion": "1.33", - "CustomerId": str(provider_details.customer), - "RequestId": "1", - "RetryIndicator": 0 - }, - "TerminalId": str(provider_details.terminal), - "Payment": { - "Amount": { - "Value": str(amount), - "CurrencyCode": "CHF" - }, - "OrderId": str(order.id), - "Description": str(sequence) - }, - "ReturnUrl": { - "Url": base_url + "/shop/confirmation", - } - }) - headers = { - 'Content-Type': 'application/json; charset=utf-8', - 'Accept': 'application/json', - 'SpecVersion': '1.33', - 'RetryIndicator': '0', - 'Authorization': authorization_header, - 'Cookie': 'ASP.NET_SessionId=lr0an2dywf25itkugaam32pm; PREF=C=en' - } - response = requests.request("POST", url, headers=headers, - data=payload) - text = response.json() - website = request.env['website'].get_current_website() - sale_order = website.sale_get_order(force_create=True) - if sale_order.state != 'draft': - request.session['sale_order_id'] = None - sale_order = website.sale_get_order( - force_create=True) - sale_order.write({ - 'payment': False - }) - if text.get('RedirectUrl'): - sale_order.write({ - 'payment': False, - 'sale_order': sale_order.id, - }) - redirect_url = text['RedirectUrl'] - return redirect_url - sale_order.write({ - 'payment': True - }) - return False - raise UserError(_("Please set the credential.")) diff --git a/safer_pay/data/payment_provider_data.xml b/safer_pay/data/payment_provider_data.xml deleted file mode 100644 index b53c10555..000000000 --- a/safer_pay/data/payment_provider_data.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - SaferPay - saferpay - True - - - - diff --git a/safer_pay/doc/RELEASE_NOTES.md b/safer_pay/doc/RELEASE_NOTES.md deleted file mode 100644 index 6c2c4c2cb..000000000 --- a/safer_pay/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,7 +0,0 @@ -## Module - -#### 29.01.2024 -#### Version 16.0.1.0.0 -#### ADD - -- Initial commit for Safer-pay Payment Gateway Integration diff --git a/safer_pay/models/__init__.py b/safer_pay/models/__init__.py deleted file mode 100644 index 072f92bbf..000000000 --- a/safer_pay/models/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) -# -# -# This program is free software: you can modify -# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# 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 for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# along with this program. If not, see . -# -############################################################################### -from . import payment_provider -from . import sale_order diff --git a/safer_pay/models/payment_provider.py b/safer_pay/models/payment_provider.py deleted file mode 100644 index 41594974f..000000000 --- a/safer_pay/models/payment_provider.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) -# -# -# This program is free software: you can modify -# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# 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 for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# along with this program. If not, see . -# -############################################################################### -from odoo import fields, models - - -class PaymentProvider(models.Model): - """Create a new records for saferpay in payment provider """ - _inherit = 'payment.provider' - - code = fields.Selection( - selection_add=[('saferpay', "saferpay")], - ondelete={'saferpay': 'set default'} - ) - customer = fields.Char(string='Customer ID', help="Customer ID get from " - "Signup credential") - terminal = fields.Char(string="Terminal ID", help="Terminal Id get from " - "signup credential") - username = fields.Char(string="Username", help="Username of Safer-pay") - password = fields.Char(string="Password", help="Password of Safer-pay") diff --git a/safer_pay/models/sale_order.py b/safer_pay/models/sale_order.py deleted file mode 100644 index 0695f7505..000000000 --- a/safer_pay/models/sale_order.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) -# -# -# This program is free software: you can modify -# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# 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 for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# along with this program. If not, see . -# -############################################################################### -from odoo import fields, models - - -class SaleOrder(models.Model): - """For getting get_portal_last_transaction method in sale order""" - _inherit = 'sale.order' - - payment = fields.Boolean(string="Payment", help="For payment details") - sale_order = fields.Integer(string="Sale order Number", - help="To get sale order") - - def get_portal_last_transaction(self): - """For updating the transaction""" - super().get_portal_last_transaction() - self.ensure_one() - if self.transaction_ids: - code = self.transaction_ids.provider_id.id - provider = self.env.ref('safer_pay.payment_acquirer_data').id - sale_order = self.env['sale.order'].search( - [('transaction_ids', 'in', self.transaction_ids.ids)]) - if (sale_order.id == sale_order.sale_order and - not sale_order.payment and code == provider): - self.transaction_ids.write({ - 'state': 'done' - }) - return self.transaction_ids._get_last() diff --git a/safer_pay/static/description/assets/icons/check.png b/safer_pay/static/description/assets/icons/check.png deleted file mode 100644 index c8e85f51d..000000000 Binary files a/safer_pay/static/description/assets/icons/check.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/chevron.png b/safer_pay/static/description/assets/icons/chevron.png deleted file mode 100644 index 2089293d6..000000000 Binary files a/safer_pay/static/description/assets/icons/chevron.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/cogs.png b/safer_pay/static/description/assets/icons/cogs.png deleted file mode 100644 index 95d0bad62..000000000 Binary files a/safer_pay/static/description/assets/icons/cogs.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/consultation.png b/safer_pay/static/description/assets/icons/consultation.png deleted file mode 100644 index 8319d4baa..000000000 Binary files a/safer_pay/static/description/assets/icons/consultation.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/ecom-black.png b/safer_pay/static/description/assets/icons/ecom-black.png deleted file mode 100644 index a9385ff13..000000000 Binary files a/safer_pay/static/description/assets/icons/ecom-black.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/education-black.png b/safer_pay/static/description/assets/icons/education-black.png deleted file mode 100644 index 3eb09b27b..000000000 Binary files a/safer_pay/static/description/assets/icons/education-black.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/hotel-black.png b/safer_pay/static/description/assets/icons/hotel-black.png deleted file mode 100644 index 130f613be..000000000 Binary files a/safer_pay/static/description/assets/icons/hotel-black.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/license.png b/safer_pay/static/description/assets/icons/license.png deleted file mode 100644 index a5869797e..000000000 Binary files a/safer_pay/static/description/assets/icons/license.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/lifebuoy.png b/safer_pay/static/description/assets/icons/lifebuoy.png deleted file mode 100644 index 658d56ccc..000000000 Binary files a/safer_pay/static/description/assets/icons/lifebuoy.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/manufacturing-black.png b/safer_pay/static/description/assets/icons/manufacturing-black.png deleted file mode 100644 index 697eb0e9f..000000000 Binary files a/safer_pay/static/description/assets/icons/manufacturing-black.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/pos-black.png b/safer_pay/static/description/assets/icons/pos-black.png deleted file mode 100644 index 97c0f90c1..000000000 Binary files a/safer_pay/static/description/assets/icons/pos-black.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/puzzle.png b/safer_pay/static/description/assets/icons/puzzle.png deleted file mode 100644 index 65cf854e7..000000000 Binary files a/safer_pay/static/description/assets/icons/puzzle.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/restaurant-black.png b/safer_pay/static/description/assets/icons/restaurant-black.png deleted file mode 100644 index 4a35eb939..000000000 Binary files a/safer_pay/static/description/assets/icons/restaurant-black.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/service-black.png b/safer_pay/static/description/assets/icons/service-black.png deleted file mode 100644 index 301ab51cb..000000000 Binary files a/safer_pay/static/description/assets/icons/service-black.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/trading-black.png b/safer_pay/static/description/assets/icons/trading-black.png deleted file mode 100644 index 9398ba2f1..000000000 Binary files a/safer_pay/static/description/assets/icons/trading-black.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/training.png b/safer_pay/static/description/assets/icons/training.png deleted file mode 100644 index 884ca024d..000000000 Binary files a/safer_pay/static/description/assets/icons/training.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/update.png b/safer_pay/static/description/assets/icons/update.png deleted file mode 100644 index ecbc5a01a..000000000 Binary files a/safer_pay/static/description/assets/icons/update.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/user.png b/safer_pay/static/description/assets/icons/user.png deleted file mode 100644 index 6ffb23d9f..000000000 Binary files a/safer_pay/static/description/assets/icons/user.png and /dev/null differ diff --git a/safer_pay/static/description/assets/icons/wrench.png b/safer_pay/static/description/assets/icons/wrench.png deleted file mode 100644 index 6c04dea0f..000000000 Binary files a/safer_pay/static/description/assets/icons/wrench.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/categories.png b/safer_pay/static/description/assets/misc/categories.png deleted file mode 100644 index bedf1e0b1..000000000 Binary files a/safer_pay/static/description/assets/misc/categories.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/check-box.png b/safer_pay/static/description/assets/misc/check-box.png deleted file mode 100644 index 42caf24b9..000000000 Binary files a/safer_pay/static/description/assets/misc/check-box.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/compass.png b/safer_pay/static/description/assets/misc/compass.png deleted file mode 100644 index d5fed8faa..000000000 Binary files a/safer_pay/static/description/assets/misc/compass.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/corporate.png b/safer_pay/static/description/assets/misc/corporate.png deleted file mode 100644 index 2eb13edbf..000000000 Binary files a/safer_pay/static/description/assets/misc/corporate.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/customer-support.png b/safer_pay/static/description/assets/misc/customer-support.png deleted file mode 100644 index 79efc72ed..000000000 Binary files a/safer_pay/static/description/assets/misc/customer-support.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/cybrosys-logo.png b/safer_pay/static/description/assets/misc/cybrosys-logo.png deleted file mode 100644 index cc3cc0ccf..000000000 Binary files a/safer_pay/static/description/assets/misc/cybrosys-logo.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/features.png b/safer_pay/static/description/assets/misc/features.png deleted file mode 100644 index b41769f77..000000000 Binary files a/safer_pay/static/description/assets/misc/features.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/logo.png b/safer_pay/static/description/assets/misc/logo.png deleted file mode 100644 index 478462d3e..000000000 Binary files a/safer_pay/static/description/assets/misc/logo.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/pictures.png b/safer_pay/static/description/assets/misc/pictures.png deleted file mode 100644 index 56d255fe9..000000000 Binary files a/safer_pay/static/description/assets/misc/pictures.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/pie-chart.png b/safer_pay/static/description/assets/misc/pie-chart.png deleted file mode 100644 index 426e05244..000000000 Binary files a/safer_pay/static/description/assets/misc/pie-chart.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/right-arrow.png b/safer_pay/static/description/assets/misc/right-arrow.png deleted file mode 100644 index 730984a06..000000000 Binary files a/safer_pay/static/description/assets/misc/right-arrow.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/star.png b/safer_pay/static/description/assets/misc/star.png deleted file mode 100644 index 2eb9ab29f..000000000 Binary files a/safer_pay/static/description/assets/misc/star.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/support.png b/safer_pay/static/description/assets/misc/support.png deleted file mode 100644 index 4f18b8b82..000000000 Binary files a/safer_pay/static/description/assets/misc/support.png and /dev/null differ diff --git a/safer_pay/static/description/assets/misc/whatsapp.png b/safer_pay/static/description/assets/misc/whatsapp.png deleted file mode 100644 index d513a5356..000000000 Binary files a/safer_pay/static/description/assets/misc/whatsapp.png and /dev/null differ diff --git a/safer_pay/static/description/assets/modules/barcode.png b/safer_pay/static/description/assets/modules/barcode.png deleted file mode 100644 index 618e3e6c4..000000000 Binary files a/safer_pay/static/description/assets/modules/barcode.png and /dev/null differ diff --git a/safer_pay/static/description/assets/modules/product_brand.png b/safer_pay/static/description/assets/modules/product_brand.png deleted file mode 100644 index 1d2238b80..000000000 Binary files a/safer_pay/static/description/assets/modules/product_brand.png and /dev/null differ diff --git a/safer_pay/static/description/assets/modules/website_cart.png b/safer_pay/static/description/assets/modules/website_cart.png deleted file mode 100644 index 163485cfd..000000000 Binary files a/safer_pay/static/description/assets/modules/website_cart.png and /dev/null differ diff --git a/safer_pay/static/description/assets/modules/website_favourites_grid.jpg b/safer_pay/static/description/assets/modules/website_favourites_grid.jpg deleted file mode 100644 index 483dd03a4..000000000 Binary files a/safer_pay/static/description/assets/modules/website_favourites_grid.jpg and /dev/null differ diff --git a/safer_pay/static/description/assets/modules/website_repeat_sale.png b/safer_pay/static/description/assets/modules/website_repeat_sale.png deleted file mode 100644 index ed175b076..000000000 Binary files a/safer_pay/static/description/assets/modules/website_repeat_sale.png and /dev/null differ diff --git a/safer_pay/static/description/assets/modules/website_upload_files.jpg b/safer_pay/static/description/assets/modules/website_upload_files.jpg deleted file mode 100644 index 5e0523196..000000000 Binary files a/safer_pay/static/description/assets/modules/website_upload_files.jpg and /dev/null differ diff --git a/safer_pay/static/description/assets/screenshots/confirmation.png b/safer_pay/static/description/assets/screenshots/confirmation.png deleted file mode 100644 index 438b54343..000000000 Binary files a/safer_pay/static/description/assets/screenshots/confirmation.png and /dev/null differ diff --git a/safer_pay/static/description/assets/screenshots/credential.png b/safer_pay/static/description/assets/screenshots/credential.png deleted file mode 100644 index a675e1e93..000000000 Binary files a/safer_pay/static/description/assets/screenshots/credential.png and /dev/null differ diff --git a/safer_pay/static/description/assets/screenshots/hero.gif b/safer_pay/static/description/assets/screenshots/hero.gif deleted file mode 100644 index 521f397c3..000000000 Binary files a/safer_pay/static/description/assets/screenshots/hero.gif and /dev/null differ diff --git a/safer_pay/static/description/assets/screenshots/payment_option.png b/safer_pay/static/description/assets/screenshots/payment_option.png deleted file mode 100644 index dca981c6a..000000000 Binary files a/safer_pay/static/description/assets/screenshots/payment_option.png and /dev/null differ diff --git a/safer_pay/static/description/assets/screenshots/provider.png b/safer_pay/static/description/assets/screenshots/provider.png deleted file mode 100644 index 377a83e3b..000000000 Binary files a/safer_pay/static/description/assets/screenshots/provider.png and /dev/null differ diff --git a/safer_pay/static/description/assets/screenshots/redirect_saferpay.png b/safer_pay/static/description/assets/screenshots/redirect_saferpay.png deleted file mode 100644 index f9de885d1..000000000 Binary files a/safer_pay/static/description/assets/screenshots/redirect_saferpay.png and /dev/null differ diff --git a/safer_pay/static/description/banner.jpg b/safer_pay/static/description/banner.jpg deleted file mode 100644 index 61b190842..000000000 Binary files a/safer_pay/static/description/banner.jpg and /dev/null differ diff --git a/safer_pay/static/description/icon.png b/safer_pay/static/description/icon.png deleted file mode 100644 index 917de3bdc..000000000 Binary files a/safer_pay/static/description/icon.png and /dev/null differ diff --git a/safer_pay/static/description/index.html b/safer_pay/static/description/index.html deleted file mode 100644 index 6e1a78b07..000000000 --- a/safer_pay/static/description/index.html +++ /dev/null @@ -1,598 +0,0 @@ -
- -
- -
-
- Community -
-
- Enterprise -
-
- Odoo.sh -
-
-
- -
-
-
- -

- Safer-pay Payment Gateway Integration

-

Safer-pay Payment Gateway in - eCommerce

- - -
-
-
-
- - -
-
- -
-

Explore This - Module

-
- - - - -
-
- -
-

Overview -

-
-
-
- Safer-pay is the modern and secure payment service provider.This - Module helps to integrate Safer-pay Payment - Gateway with your eCommerce Website.Hence, Allow us to make payments via - Safer-pay Payment Gateway -
-
- - - -
-
- -
-

Features -

-
-
-
-
- - Community & Enterprise Support. -
-
- - Payments via Safer-pay Payment Gateway. -
-
- - -
-
- -
-

- Configuration -

-
-
-
-

You can register the test safer pay using this link : - "https://test.saferpay.com/BO/Welcome".

- -
-
- - - - -
-
- -
-

Screenshots -

-
-
-
- -
-

After installation of the module a new payment provider record(SaferPay) is created.

- -
- -
-

Using the required credential,configure the SaferPay payment provider.

- -
- -
-

Select the payment provider as SaferPay

- -
- -
-

When we are clicking the pay now button it redirect to Saferpay website.

- -
- -
-

After the transaction it redirects to conformation page of odoo from SaferPay website.

- - -
-
-
- - - -
-
- -
-

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/safer_pay/static/src/js/payment_form.js b/safer_pay/static/src/js/payment_form.js deleted file mode 100644 index 7710acfc9..000000000 --- a/safer_pay/static/src/js/payment_form.js +++ /dev/null @@ -1,43 +0,0 @@ -odoo.define('safer_pay.payment_form', require => { - 'use strict'; - const checkoutForm = require('payment.checkout_form'); - const manageForm = require('payment.manage_form'); - var Dialog = require('web.Dialog'); - - const paymentProvider = { - /** - Redirect to url of safer pay page after processing the values - **/ - _processRedirectPayment: function (code, acquirerId, processingValues) { - if (code !== 'saferpay') { - return this._super(...arguments); - } - var response = this._rpc({ - route: '/saferpay/payment', - params: { - 'reference': processingValues, - }, - }).then((response) => { - if(response == false){ - Dialog.alert( - this, - "Please provide proper credential",{ - onForceClose: function(){ - window.location = '/shop/payment' - }, - confirm_callback: function(){ - window.location = '/shop/payment' - } - } - ); - return - } - else{ - window.open(response) - } - }); - }, - }; - checkoutForm.include(paymentProvider); - manageForm.include(paymentProvider); -}); diff --git a/safer_pay/views/payment_provider_views.xml b/safer_pay/views/payment_provider_views.xml deleted file mode 100644 index e0ffd3724..000000000 --- a/safer_pay/views/payment_provider_views.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - payment.provider.view.form.inherit.safer.pay - payment.provider - - - - - - - - - - - - - diff --git a/safer_pay/views/sale_order_views.xml b/safer_pay/views/sale_order_views.xml deleted file mode 100644 index 79c77a98d..000000000 --- a/safer_pay/views/sale_order_views.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - sale.order.view.form.inherit.safer.pay - sale.order - - - - - - - - -