Payment Provider: EasyPay
payment_easypay_oca · OCA/l10n-portugal
Health
60/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 6 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.62 MB
Module directory on disk
Code analysis
0 migration notes
3 models
5 views
8 HTTP endpoints
Description
This module integrates EasyPay as a payment provider in Odoo, allowing customers to pay via credit card and other payment methods using EasyPay's secure payment gateway.
EasyPay is a Portuguese payment service provider that supports multiple payment methods including credit cards, Multibanco, MB WAY, SEPA Direct Debit, and more.
Verified as supported:
- Credit/Debit Card payments,
- Multibanco (MB) reference payments,
- MB WAY.
Not yet implemented or verified:
- SEPA Direct Debit,
- Pay by Link,
- Multibanco reference on invoices.
Learn more about EasyPay at https://www.easypay.pt/
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
checkout_page |
EasyPay Checkout Page | ir.ui.view | qweb | New |
easypay_icon |
EasyPay | ir.ui.view | qweb | New |
mb_reference_page |
Multibanco Payment Reference | ir.ui.view | qweb | New |
payment_provider_form_easypay |
payment.provider.form.easypay | payment.provider | form | Inherits payment.payment_provider_form |
payment_transaction_form_easypay |
payment.transaction.form.easypay | payment.transaction | form | Inherits payment.payment_transaction_form |
HTTP endpoints 8
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/payment/easypay/checkout/cancel |
EasyPayCheckoutCallbackController.easypay_checkout_cancel |
public | http | GET | csrf off sudo |
/payment/easypay/checkout/success |
EasyPayCheckoutCallbackController.easypay_checkout_success |
public | http | GET | csrf off sudo |
/payment/easypay/mb_reference/<int:tx_id> |
EasyPayCheckoutCallbackController.easypay_mb_reference |
public | http | GET | csrf off sudo website |
/payment/easypay/checkout |
EasyPayCheckoutPageController.checkout_page |
public | http | ALL | csrf off sudo |
/payment/easypay/create_checkout_session |
EasyPayCheckoutSessionController.create_checkout_session |
public | json | ALL | sudo website |
/payment/easypay/webhook/authorisation |
EasyPayWebhookController._authorisation_webhook |
public | http | POST | csrf off sudo |
/payment/easypay/webhook/generic |
EasyPayWebhookController._generic_webhook |
public | http | POST | csrf off sudo |
/payment/easypay/webhook/transaction |
EasyPayWebhookController.easypay_transaction_webhook |
public | http | POST | csrf off sudo |
Models touched 3
New fields (2)
-
codeCharhelp='Internal code used by EasyPay API'required=Truestring='Method Code' -
nameCharrequired=Truestring='Method Name'translate=True
No public methods.
New fields (7)
-
codeSelectionondelete={'easypay': 'set default'}selection_add=[('easypay', 'EasyPay')] -
easypay_account_idCharhelp='The Account ID provided by EasyPay'string='Account ID' -
easypay_api_keyChargroups='base.group_system'help='The API Key provided by EasyPay'string='API Key' -
easypay_hide_detailsBooleandefault=Falsehelp='When enabled, the EasyPay Checkout SDK hides the order details panel and shows a collapsible summary instead. 'string='Hide Customer Details Form' -
easypay_mb_expiration_daysIntegerdefault=3help='Number of days before a Multibanco reference expires.'string='MB Expiration Days' -
easypay_mb_productSelectiondefault='CHECKDIGIT'help='The SPG product allows initiating refunds, but might have additional fees. Please check with your Easypay account manager for details.'required=Trueselection=[('CHECKDIGIT', 'CHECKDIGIT'), ('SPG', 'SPG')]string='MB Product Type' -
easypay_webhook_base_urlCharcompute='_compute_easypay_webhook_base_url'help='Base URL that will be used for webhook configuration in EasyPay'string='Webhook Base URL'
-
action_easypay_configure_webhooks(self) -
action_easypay_sync_payment_methods(self)Fetch available payment methods from EasyPay and update the provider. -
action_easypay_test_connection(self)Test connection to EasyPay API using ping endpoint.
New fields (8)
-
easypay_capture_statusCharhelp='The capture status (paid, pending, authorised, etc.)'readonly=Truestring='EasyPay Capture Status' -
easypay_checkout_idCharhelp='The checkout session ID returned by EasyPay'readonly=Truestring='EasyPay Checkout ID' -
easypay_mb_entityCharhelp='Multibanco entity number for the payment reference'readonly=Truestring='MB Entity' -
easypay_mb_expirationCharhelp='Expiration date/time for the Multibanco reference'readonly=Truestring='MB Expiration' -
easypay_mb_referenceCharhelp='Multibanco reference number for the payment'readonly=Truestring='MB Reference' -
easypay_payment_detailsJsonhelp='Full payment details from EasyPay webhook'readonly=Truestring='EasyPay Payment Details' -
easypay_payment_methodCharhelp='The payment method selected by customer (cc, mb, mbw, etc.)'readonly=Truestring='EasyPay Payment Method' -
easypay_transaction_idCharhelp='The transaction ID returned by EasyPay'readonly=Truestring='EasyPay Transaction ID'
No public methods.