Payment Provider: Mercado Pago
payment_mercado_pago · odoo/odoo
Health
77/100
good
-
Security22/251 minor finding
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 16.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.85 MB
Module directory on disk
Code analysis
0 migration notes
3 models
4 views
4 HTTP endpoints
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
authorization_error |
authorization_error | ir.ui.view | qweb | New |
inline_form |
inline_form | ir.ui.view | qweb | New |
payment_mercado_pago.method_form |
payment_mercado_pago.method_form | ir.ui.view | qweb | Inherits payment.method_form |
payment_provider_form |
Mercado Pago Provider Form | payment.provider | form | Inherits payment.payment_provider_form |
HTTP endpoints 4
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | MercadoPagoOnboardingController.mercado_pago_return_from_authorization |
user | http | GET | website |
/payment/mercado_pago/payments |
MercadoPagoPaymentController.mercado_pago_payment |
public | jsonrpc | ALL | sudo |
| (inherited route override) | MercadoPagoPaymentController.mercado_pago_return_from_checkout |
public | http | GET | |
| (inherited route override) | MercadoPagoPaymentController.mercado_pago_webhook |
public | http | POST | csrf off |
Models touched 3
New fields (6)
-
codeSelectionondelete={'mercado_pago': 'set default'}selection_add=[('mercado_pago', 'Mercado Pago')] -
mercado_pago_access_tokenCharcopy=Falsegroups='base.group_system'string='Mercado Pago Access Token' -
mercado_pago_access_token_expiryDatetimecopy=Falsegroups='base.group_system'string='Mercado Pago Access Token Expiry' -
mercado_pago_account_country_idMany2one → res.countrycomodel_name='res.country'copy=Falsedomain=[('code', 'in', list(const.SUPPORTED_COUNTRIES))]help='The country of the Mercado Pago account. The currency will be updated to match the country of the Mercado Pago account.'inverse='_inverse_mercado_pago_account_country_id'required_if_provider='mercado_pago'string='Mercado Pago Account Country' -
mercado_pago_public_keyCharcopy=Falsegroups='base.group_system'string='Mercado Pago Public Key' -
mercado_pago_refresh_tokenCharcopy=Falsegroups='base.group_system'string='Mercado Pago Refresh Token'
-
action_start_onboarding(self, menu_id=None)Override of `payment` to redirect to the Mercado Pago OAuth URL. Note: `self.ensure_one()` :param int menu_id: The menu from which the onboarding is started, as an `ir.ui.menu` id. :return: An URL action to redirect to the Mercado Pago OAuth URL. :rtype: dict :raise RedirectWarning: If the company's currency is not supported. -
write(self, vals)Override of `payment` to prevent changing `is_live` while an account is connected. :raise UserError: If `is_live` changes on a connected provider without new credentials
New fields (1)
-
mercado_pago_customer_idCharreadonly=True
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…