Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
odoo-addon-payment_sequra @ git+https://github.com/OCA/account-payment.git@refs/pull/901/head#subdirectory=payment_sequra
87 changes: 87 additions & 0 deletions website_sale_payment_sequra_simulator/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
=====================================
Website Payment Sale SeQura Simulator
=====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4d2429fe3d2281c12bb0c6727248bfb252741518203b8fe19474a1eabdcece9c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github
:target: https://github.com/OCA/e-commerce/tree/18.0/website_sale_payment_sequra_simulator
:alt: OCA/e-commerce
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_payment_sequra_simulator
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds support for SeQura payment simulator widget on product
pages, allowing customers to view available financing options.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/e-commerce/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_payment_sequra_simulator%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- Juan Carlos Oñate

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-juancarlosonate-tecnativa| image:: https://github.com/juancarlosonate-tecnativa.png?size=40px
:target: https://github.com/juancarlosonate-tecnativa
:alt: juancarlosonate-tecnativa

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-juancarlosonate-tecnativa|

This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/18.0/website_sale_payment_sequra_simulator>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions website_sale_payment_sequra_simulator/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions website_sale_payment_sequra_simulator/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2025 Juan Carlos Oñate - Tecnativa <juancarlos.onate@tecnativa.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Website Payment Sale SeQura Simulator",
"summary": "Adds SeQura payment simulator.",
"version": "18.0.1.0.0",
"category": "Accounting/Payment Providers",
"author": "Tecnativa, Odoo Community Association (OCA)",
"maintainers": ["juancarlosonate-tecnativa"],
"license": "AGPL-3",
"website": "https://github.com/OCA/e-commerce",
"depends": ["website_sale", "payment_sequra"],
"data": [
"views/payment_provider_views.xml",
"views/templates.xml",
],
"installable": True,
}
1 change: 1 addition & 0 deletions website_sale_payment_sequra_simulator/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import payment_provider
30 changes: 30 additions & 0 deletions website_sale_payment_sequra_simulator/models/payment_provider.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2025 Juan Carlos Oñate - Tecnativa <juancarlos.onate@tecnativa.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models


class PaymentProvider(models.Model):
_inherit = "payment.provider"

sequra_asset_key = fields.Char(
string="SeQura Asset Key",
help="Asset Key provided by SeQura for the widget integration",
)
sequra_script_uri = fields.Char(
string="SeQura Script URI",
compute="_compute_sequra_script_uri",
help="Script URI is automatically determined based on provider "
"state (test/production)",
)

@api.depends("state")
def _compute_sequra_script_uri(self):
for provider in self:
if provider.state == "test":
provider.sequra_script_uri = (
"https://sandbox.sequracdn.com/assets/sequra-checkout.min.js"
)
else:
provider.sequra_script_uri = (
"https://live.sequracdn.com/assets/sequra-checkout.min.js"
)
3 changes: 3 additions & 0 deletions website_sale_payment_sequra_simulator/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions website_sale_payment_sequra_simulator/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Tecnativa](https://www.tecnativa.com):
- Juan Carlos Oñate
2 changes: 2 additions & 0 deletions website_sale_payment_sequra_simulator/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module adds support for SeQura payment simulator widget on product
pages, allowing customers to view available financing options.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading