Browse Source

Mar 2 [RMV] : Removed 'tap_payment_gateway'

pull/267/merge
AjmalCybro 1 year ago
parent
commit
4cdb0fd72b
  1. 47
      tap_payment_gateway/README.rst
  2. 32
      tap_payment_gateway/__init__.py
  3. 53
      tap_payment_gateway/__manifest__.py
  4. 22
      tap_payment_gateway/controllers/__init__.py
  5. 127
      tap_payment_gateway/controllers/tap_payment_gateway.py
  6. 15
      tap_payment_gateway/data/payment_provider_data.xml
  7. 6
      tap_payment_gateway/doc/RELEASE_NOTES.md
  8. 23
      tap_payment_gateway/models/__init__.py
  9. 50
      tap_payment_gateway/models/payment_provider.py
  10. 52
      tap_payment_gateway/models/payment_transaction.py
  11. BIN
      tap_payment_gateway/static/src/description/assets/icons/check.png
  12. BIN
      tap_payment_gateway/static/src/description/assets/icons/chevron.png
  13. BIN
      tap_payment_gateway/static/src/description/assets/icons/cogs.png
  14. BIN
      tap_payment_gateway/static/src/description/assets/icons/consultation.png
  15. BIN
      tap_payment_gateway/static/src/description/assets/icons/ecom-black.png
  16. BIN
      tap_payment_gateway/static/src/description/assets/icons/education-black.png
  17. BIN
      tap_payment_gateway/static/src/description/assets/icons/hotel-black.png
  18. BIN
      tap_payment_gateway/static/src/description/assets/icons/license.png
  19. BIN
      tap_payment_gateway/static/src/description/assets/icons/lifebuoy.png
  20. BIN
      tap_payment_gateway/static/src/description/assets/icons/manufacturing-black.png
  21. BIN
      tap_payment_gateway/static/src/description/assets/icons/pos-black.png
  22. BIN
      tap_payment_gateway/static/src/description/assets/icons/puzzle.png
  23. BIN
      tap_payment_gateway/static/src/description/assets/icons/restaurant-black.png
  24. BIN
      tap_payment_gateway/static/src/description/assets/icons/service-black.png
  25. BIN
      tap_payment_gateway/static/src/description/assets/icons/trading-black.png
  26. BIN
      tap_payment_gateway/static/src/description/assets/icons/training.png
  27. BIN
      tap_payment_gateway/static/src/description/assets/icons/update.png
  28. BIN
      tap_payment_gateway/static/src/description/assets/icons/user.png
  29. BIN
      tap_payment_gateway/static/src/description/assets/icons/wrench.png
  30. BIN
      tap_payment_gateway/static/src/description/assets/misc/categories.png
  31. BIN
      tap_payment_gateway/static/src/description/assets/misc/check-box.png
  32. BIN
      tap_payment_gateway/static/src/description/assets/misc/compass.png
  33. BIN
      tap_payment_gateway/static/src/description/assets/misc/corporate.png
  34. BIN
      tap_payment_gateway/static/src/description/assets/misc/customer-support.png
  35. BIN
      tap_payment_gateway/static/src/description/assets/misc/cybrosys-logo.png
  36. BIN
      tap_payment_gateway/static/src/description/assets/misc/features.png
  37. BIN
      tap_payment_gateway/static/src/description/assets/misc/logo.png
  38. BIN
      tap_payment_gateway/static/src/description/assets/misc/pictures.png
  39. BIN
      tap_payment_gateway/static/src/description/assets/misc/pie-chart.png
  40. BIN
      tap_payment_gateway/static/src/description/assets/misc/right-arrow.png
  41. BIN
      tap_payment_gateway/static/src/description/assets/misc/star.png
  42. BIN
      tap_payment_gateway/static/src/description/assets/misc/support.png
  43. BIN
      tap_payment_gateway/static/src/description/assets/misc/whatsapp.png
  44. BIN
      tap_payment_gateway/static/src/description/assets/modules/11.png
  45. BIN
      tap_payment_gateway/static/src/description/assets/modules/12.png
  46. BIN
      tap_payment_gateway/static/src/description/assets/modules/13.png
  47. BIN
      tap_payment_gateway/static/src/description/assets/modules/14.png
  48. BIN
      tap_payment_gateway/static/src/description/assets/modules/15.png
  49. BIN
      tap_payment_gateway/static/src/description/assets/modules/16.png
  50. BIN
      tap_payment_gateway/static/src/description/assets/screenshots/1.png
  51. BIN
      tap_payment_gateway/static/src/description/assets/screenshots/2.png
  52. BIN
      tap_payment_gateway/static/src/description/assets/screenshots/4.png
  53. BIN
      tap_payment_gateway/static/src/description/assets/screenshots/5.png
  54. BIN
      tap_payment_gateway/static/src/description/assets/screenshots/hero.gif
  55. BIN
      tap_payment_gateway/static/src/description/banner.jpg
  56. BIN
      tap_payment_gateway/static/src/description/icon.png
  57. BIN
      tap_payment_gateway/static/src/description/icon1.png
  58. 639
      tap_payment_gateway/static/src/description/index.html
  59. 63
      tap_payment_gateway/static/src/js/payment_form.js
  60. 20
      tap_payment_gateway/views/payment_provider_views.xml
  61. 44
      tap_payment_gateway/views/tap_payment_templates.xml

47
tap_payment_gateway/README.rst

@ -1,47 +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
Tap Payment Gateway
===================
Tap Payment Gateway Integration 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.gnu.org/licenses/lgpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer:(V16) Jumana Jabin MP @cybrosys, Contact: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker
-----------
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Maintainer
==========
.. image:: https://cybrosys.com/images/logo.png
:target: https://cybrosys.com
This module is maintained by Cybrosys Technologies.
For support and more information, please visit `Our Website <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

32
tap_payment_gateway/__init__.py

@ -1,32 +0,0 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author:Jumana Jabin MP (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
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, 'tap')
def uninstall_hook(cr, registry):
reset_payment_provider(cr, registry, 'tap')

53
tap_payment_gateway/__manifest__.py

@ -1,53 +0,0 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author:Jumana Jabin MP (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Tap Payment Gateway',
'version': '16.0.1.0.0',
'category': 'ExtraTools',
'summary': 'Tap Payment Gateway Integration for Odoo 16',
'description': 'This module integrates Tap payment gateway '
'with Odoo, allowing customers to securely make payments '
'using Tap on your website.',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['base', 'payment', 'account', 'website_sale'],
'data': [
'views/tap_payment_templates.xml',
'data/payment_provider_data.xml',
'views/payment_provider_views.xml',
],
'assets': {
'web.assets_frontend': [
'tap_payment_gateway/static/src/js/payment_form.js'
]
},
'post_init_hook': 'post_init_hook',
'uninstall_hook': 'uninstall_hook',
'images': [
'static/description/banner.jpg'],
'license': 'LGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

22
tap_payment_gateway/controllers/__init__.py

@ -1,22 +0,0 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author:Jumana Jabin MP (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import tap_payment_gateway

127
tap_payment_gateway/controllers/tap_payment_gateway.py

@ -1,127 +0,0 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author:Jumana Jabin MP (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
import logging
import re
import requests
from odoo import http, _
from odoo.exceptions import ValidationError
from odoo.http import request
_logger = logging.getLogger(__name__)
class TapPaymentGateway(http.Controller):
"""Controller for handling payment processing using the Tap Payment
Gateway."""
@http.route('/tap', type='json', auth='public', methods=['POST'],
csrf=False)
def generate_tap_token(self, card_number, exp_month, exp_year, cvc,
cardholder_name):
"""Generate a Tap Payment Gateway token for a given credit card."""
special_chars_regex = re.compile(
r'[@#$%^&*()_+\-=\[\]{};:"\\|,.<>\/?]+')
if special_chars_regex.search(cardholder_name):
raise ValidationError(_('Invalid Card Holder Name'))
tap_credentials = http.request.env.ref(
'tap_payment_gateway.payment_provider_tap').sudo()
token_url = "https://api.tap.company/v2/tokens"
payload = {
"card": {
"number": card_number,
"exp_month": exp_month,
"exp_year": exp_year,
"cvc": cvc,
"name": cardholder_name,
},
"client_ip": http.request.httprequest.remote_addr
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"Authorization": f"Bearer {tap_credentials.tap_secret_key}"
}
try:
response = requests.post(token_url, json=payload, headers=headers)
if response.status_code == 200:
token_data = response.json()
return token_data['id']
else:
error_message = response.json().get('message',
'Token creation failed')
_logger.error(f"Token creation failed: {error_message}")
return None
except Exception as e:
_logger.error(f"An error occurred: {str(e)}")
return None
@http.route('/payment/tap/process_payment', type='json', auth='public')
def tap_process_payment(self, payload, data):
"""Process a payment using the Tap Payment Gateway."""
tap_credentials = http.request.env.ref(
'tap_payment_gateway.payment_provider_tap').sudo()
card_token = payload
payment_url = "https://api.tap.company/v2/charges"
partner = request.env['res.partner'].sudo().browse(data['partner_id'])
redirect_url = request.httprequest.host_url + 'payment/status'
payload = {
"amount": str(data['amount']),
"currency": data.get('currency', 'KWD'),
"description": data['reference'],
"source": {
"id": card_token,
"type": "card"
},
"customer": {
"first_name": partner.sudo().name,
"last_name": "",
"email": partner.sudo().email,
"phone": {
"number": partner.sudo().phone
}
},
"redirect": {"url": redirect_url}}
headers = {
"accept": "application/json",
"content-type": "application/json",
"Authorization": f"Bearer {tap_credentials.tap_secret_key}"
}
try:
response = requests.post(payment_url, json=payload,
headers=headers)
if response.status_code == 200:
payment_data = response.json()
tap_sudo = (request.env['payment.transaction'].sudo()
._get_tx_from_notification_data('tap',
payment_data))
tap_sudo._process_notification_data(payment_data)
payment_url = payment_data['redirect']['url']
return {'success': True, 'payment_url': payment_url}
else:
error_message = response.json().get('message',
'Payment processing failed')
_logger.error(f"Payment processing failed: {error_message}")
return False
except Exception as e:
_logger.error(
f"An error occurred during payment processing: {str(e)}")
return False

15
tap_payment_gateway/data/payment_provider_data.xml

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data noupdate="1">
<!-- Define the Tap payment provider -->
<record id="payment_provider_tap" model="payment.provider">
<field name="name">Tap</field>
<field name="code">tap</field>
<field name="display_as">Tap</field>
<field name="company_id" ref="base.main_company"/>
<field name="inline_form_view_id" ref="inline_form"/>
<field name="image_128" type="base64" file="tap_payment_gateway/static/src/description/icon1.png"/>
<field name="module_id" ref="base.module_tap_payment_gateway"/>
</record>
</data>
</odoo>

6
tap_payment_gateway/doc/RELEASE_NOTES.md

@ -1,6 +0,0 @@
## Module <tap_payment_gateway>
#### 01.03.2024
#### Version 16.0.1.0.0
#### ADD
- Initial Commit for Tap Payment Gateway

23
tap_payment_gateway/models/__init__.py

@ -1,23 +0,0 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author:Jumana Jabin MP (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import payment_transaction
from . import payment_provider

50
tap_payment_gateway/models/payment_provider.py

@ -1,50 +0,0 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author:Jumana Jabin MP (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import api, fields, models
class PaymentProvider(models.Model):
""" Payment Provider Model for Tap """
_inherit = 'payment.provider'
code = fields.Selection(selection_add=[('tap', "Tap")],
ondelete={'tap': 'set default'},
string="Provider Code",
help="The code that represents the Tap payment"
" provider.")
tap_secret_key = fields.Char(string="Tap Secret Key", required=True,
default="sk_test_XKokBfNWv6FIYuTMg5sLPjhJ",
help="The secret key provided by Tap for API"
" authentication.")
tap_publishable_key = fields.Char(string="Tap Publishable Key",
required=True,
default="pk_test_EtHFV4BuPQokJT6jiROls87Y",
help="The publishable key provided by"
" Tap for API authentication.")
@api.model
def _get_payment_method_information(self):
""" Get Payment Method Information for Tap """
res = super()._get_payment_method_information()
res['tap'] = {'mode': 'unique',
'domain': [('type', '=', 'bank')]}
return res

52
tap_payment_gateway/models/payment_transaction.py

@ -1,52 +0,0 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author:Jumana Jabin MP (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models, _
from odoo.exceptions import ValidationError
class PaymentTransaction(models.Model):
"""Payment Transaction Model for handling transactions with payment
providers."""
_inherit = 'payment.transaction'
def _get_tx_from_notification_data(self, provider_code, notification_data):
"""Get the transaction from notification data."""
tx = super()._get_tx_from_notification_data(provider_code,
notification_data)
if provider_code != 'tap' or len(tx) == 1:
return tx
reference = notification_data.get(
'description').split('-')[0]
tx = self.search(
[('reference', '=', reference), ('provider_code', '=', 'tap')])
if not tx:
raise ValidationError(
"Tap: " + _("No transaction found matching reference %s.",
reference))
return tx
def _process_notification_data(self, notification_data):
"""Process the notification data received from Tap"""
super()._process_notification_data(notification_data)
if self.provider_code != 'tap':
return
self._set_done()

BIN
tap_payment_gateway/static/src/description/assets/icons/check.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

BIN
tap_payment_gateway/static/src/description/assets/icons/chevron.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 B

BIN
tap_payment_gateway/static/src/description/assets/icons/cogs.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

BIN
tap_payment_gateway/static/src/description/assets/icons/consultation.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

BIN
tap_payment_gateway/static/src/description/assets/icons/ecom-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 576 B

BIN
tap_payment_gateway/static/src/description/assets/icons/education-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 733 B

BIN
tap_payment_gateway/static/src/description/assets/icons/hotel-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 911 B

BIN
tap_payment_gateway/static/src/description/assets/icons/license.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

BIN
tap_payment_gateway/static/src/description/assets/icons/lifebuoy.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

BIN
tap_payment_gateway/static/src/description/assets/icons/manufacturing-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 B

BIN
tap_payment_gateway/static/src/description/assets/icons/pos-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 878 B

BIN
tap_payment_gateway/static/src/description/assets/icons/puzzle.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 653 B

BIN
tap_payment_gateway/static/src/description/assets/icons/restaurant-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 905 B

BIN
tap_payment_gateway/static/src/description/assets/icons/service-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 839 B

BIN
tap_payment_gateway/static/src/description/assets/icons/trading-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 427 B

BIN
tap_payment_gateway/static/src/description/assets/icons/training.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 627 B

BIN
tap_payment_gateway/static/src/description/assets/icons/update.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

BIN
tap_payment_gateway/static/src/description/assets/icons/user.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 988 B

BIN
tap_payment_gateway/static/src/description/assets/icons/wrench.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/categories.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/check-box.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/compass.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/corporate.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/customer-support.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/cybrosys-logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/features.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 589 B

BIN
tap_payment_gateway/static/src/description/assets/misc/logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/pictures.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/pie-chart.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/right-arrow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 967 B

BIN
tap_payment_gateway/static/src/description/assets/misc/star.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/support.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

BIN
tap_payment_gateway/static/src/description/assets/misc/whatsapp.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

BIN
tap_payment_gateway/static/src/description/assets/modules/11.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

BIN
tap_payment_gateway/static/src/description/assets/modules/12.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

BIN
tap_payment_gateway/static/src/description/assets/modules/13.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

BIN
tap_payment_gateway/static/src/description/assets/modules/14.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

BIN
tap_payment_gateway/static/src/description/assets/modules/15.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

BIN
tap_payment_gateway/static/src/description/assets/modules/16.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

BIN
tap_payment_gateway/static/src/description/assets/screenshots/1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

BIN
tap_payment_gateway/static/src/description/assets/screenshots/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

BIN
tap_payment_gateway/static/src/description/assets/screenshots/4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

BIN
tap_payment_gateway/static/src/description/assets/screenshots/5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

BIN
tap_payment_gateway/static/src/description/assets/screenshots/hero.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

BIN
tap_payment_gateway/static/src/description/banner.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

BIN
tap_payment_gateway/static/src/description/icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
tap_payment_gateway/static/src/description/icon1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

639
tap_payment_gateway/static/src/description/index.html

@ -1,639 +0,0 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2"><i class="fa fa-check mr-1"></i>Community
</div>
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2"><i class="fa fa-check mr-1"></i>Enterprise
</div>
<div style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Odoo.sh
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Tap Payment Gateway</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Make Payments on the Website Through Tap Gateway</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;"/>
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
Tap Payment Gateway is a method which is used to simplifies the online
payments.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Community &amp; Enterprise Support</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Accepts Credit/Debit Card Transactions</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Through ACS Emulator, User Can Verify Their Payment Details.</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Log in to your
Tap account.
<a href="https://developers.tap.company/reference/api-endpoint">Create account</a></h3>
<img src="assets/screenshots/5.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;"><h3
style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
After installing the
module go to, Website --> Configuration --> Payment
Provider.After activating the Tap Acquirer fill
in the Secret Key and Published Key
</h3>
<img src="assets/screenshots/1.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;"><h3
style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Select 'Tap' option on checkout.Fill in the card
details and click 'Pay Now' button
</h3>
<img src="assets/screenshots/2.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;"><h3
style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
After a successful
transaction you will be redirected to this window
</h3>
<img src="assets/screenshots/4.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide"
data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item"
style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/hr_zk_attendance/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/11.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/odoo_google_meet_integration/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/12.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/hr_linkedin_recruitment/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/13.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active"
style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/multi_sms_gateway/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/14.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/dropbox_integration/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/15.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/odoo_chatgpt_connector/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/16.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1"
data-slide="prev"
style="width:35px; color:#000"> <span
class="carousel-control-prev-icon"><i
class="fa fa-chevron-left"
style="font-size:24px"></i></span>
</a> <a class="carousel-control-next" href="#demo1"
data-slide="next" style="width:35px; color:#000">
<span class="carousel-control-next-icon"><i
class="fa fa-chevron-right" style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/trading-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/pos-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/education-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/ecom-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/service-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/restaurant-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/hotel-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</div>
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48"
style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help?
Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52"
style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

63
tap_payment_gateway/static/src/js/payment_form.js

@ -1,63 +0,0 @@
odoo.define('tap_payment_gateway.payment_form', function (require) {
"use strict";
/**
* Tap Payment Gateway Payment Form Module
*
* This module extends the payment checkout form and payment manage form
* for processing payments with the Tap payment provider.
*/
const core = require('web.core');
const ajax = require('web.ajax');
const _t = core._t;
const checkoutForm = require('payment.checkout_form');
const manageForm = require('payment.manage_form');
const tapMixin = {
/**
* Process Redirect Payment for Tap Provider
*
* @param {string} provider - The payment provider.
* @param {string} acquirerId - The acquirer ID.
* @param {Object} processingValues - The processing values.
* @returns {Promise} A promise that resolves when the payment is processed.
*/
_processRedirectPayment: function (provider, acquirerId, processingValues) {
if (provider !== 'tap') {
return this._super(...arguments);
}
const self = this;
return ajax.jsonRpc("/tap", 'call', {
card_number: self.$('#cc_number').val(),
exp_month: self.$('#cc_expiry_month').val(),
exp_year: self.$('#cc_expiry_year').val(),
cvc: self.$('#cc_cvv').val(),
cardholder_name: self.$('#cc_holder_name').val(),
total_amount: self.txContext.amount,
reference: processingValues['reference']
}).then(token => {
if (token) {
ajax.jsonRpc("/payment/tap/process_payment", 'call', {
payload: token,
data: processingValues
}).then(response => {
if (response.success) {
const payment_url = response.payment_url;
window.location.href = payment_url;
} else {
const error_message = response.error_message || 'Payment processing failed';
}
});
}
});
},
_prepareInlineForm: function (provider, paymentOptionId, flow) {
if (provider !== 'tap') {
return this._super(...arguments);
}
if (flow === 'token') {
return Promise.resolve();
}
},
};
checkoutForm.include(tapMixin);
manageForm.include(tapMixin);
});

20
tap_payment_gateway/views/payment_provider_views.xml

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Define the view for modifying payment provider credentials -->
<record id="payment_provider_form" model="ir.ui.view">
<field name="name">payment.provider.form.inherit</field>
<field name="model">payment.provider</field>
<field name="inherit_id" ref="payment.payment_provider_form"/>
<field name="arch" type="xml">
<group name="provider_credentials" position='inside'>
<group attrs="{'invisible': [('code', '!=', 'tap')]}">
<field name="tap_secret_key"
string="Secret Key"
attrs="{'required': [('code', '=', 'tap'), ('state', '!=', 'disabled')]}"/>
<field name="tap_publishable_key" string="Published Key"
attrs="{'required': [('code', '=', 'tap'), ('state', '!=', 'disabled')]}"/>
</group>
</group>
</field>
</record>
</odoo>

44
tap_payment_gateway/views/tap_payment_templates.xml

@ -1,44 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data noupdate="0">
<!-- Payment Gateway Inline Form Template -->
<template id="inline_form" name="inline_form">
<div t-attf-id="test-container-{{acquirer_id}}"
class="tap_payment">
<div class="mt8">
<div class="form-group col-md-12">
<input type="tel" name="cc_number" id="cc_number"
class="cc_number form-control"
placeholder="xxxx xxxx xxxx xxxx" maxlength="16"
data-is-required="true"/>
<input type="hidden" name="cc_brand" value=""/>
</div>
<div class="form-group col-md-6">
<input type="text" name="cc_expiry_month"
id="cc_expiry_month" class="form-control"
placeholder="MM" data-is-required="true"
maxlength="2"/>
</div>
<div class="form-group col-md-6">
<input type="text" name="cc_expiry_year"
id="cc_expiry_year" class="form-control"
placeholder="YY" data-is-required="true"
maxlength="2"/>
</div>
<div class="form-group col-md-6">
<input type="password" name="cc_cvv" id="cc_cvv"
class="form-control"
placeholder="CardCVV" data-is-required="true"
maxlength="3"/>
</div>
<div class="form-group col-md-6">
<input type="text" name="cc_holder_name"
id="cc_holder_name" class="form-control"
placeholder="CardholderName"
data-is-required="true"/>
</div>
</div>
</div>
</template>
</data>
</odoo>
Loading…
Cancel
Save