Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Dec 18, 2024

Versions

  • 17.0+

Steps

  1. Use COP, HLN or NIO as currency;
  2. create a SO or invoice with a non-integer amount total;
  3. create a payment link;
  4. pay using Mercado Pago.

Issue

Error processing payment
Prices in COP currency must be expressed with integer values

Cause

Our currency defaults follow the ISO 4217 standard for minor units. For three currencies (COP, HLN & NIO), Mercado Pago only accepts integer amounts instead of the standard 2 decimals, resulting in a failed payment transaction.

Solution

In the payload sent to Mercado Pago, round the amount down if it uses one of the affected currencies.

opw-4191877

Forward-Port-Of: #185664

@robodoo
Copy link
Contributor

robodoo commented Dec 18, 2024

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Dec 18, 2024

@lvsz @AntoineVDV cherrypicking of pull request #185664 failed.

stdout:

Auto-merging addons/payment_mercado_pago/i18n/payment_mercado_pago.pot
CONFLICT (content): Merge conflict in addons/payment_mercado_pago/i18n/payment_mercado_pago.pot

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

⚠️ after resolving this conflict, you will need to merge it via @robodoo.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added forwardport This PR was created by @fw-bot conflict There was an error while creating this forward-port PR labels Dec 18, 2024
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Dec 18, 2024
Versions
--------
- 17.0+

Steps
-----
1. Use COP, HLN or NIO as currency;
2. create a SO or invoice with a non-integer amount total;
3. create a payment link;
4. pay using Mercado Pago.

Issue
-----
> Error processing payment
> Prices in COP currency must be expressed with integer values

Cause
-----
Our currency defaults follow the ISO 4217 standard for minor units. For
three currencies (COP, HLN & NIO), Mercado Pago only accepts integer
amounts instead of the standard 2 decimals, resulting in a failed
payment transaction.

Solution
--------
In the payload sent to Mercado Pago, round the amount down if it uses
one of the affected currencies.

opw-4191877

X-original-commit: 0b8aeca
@lvsz lvsz force-pushed the saas-17.2-17.0-opw-4191877-mercado_pago_currency_rounding-sile-GPOx-fw branch from 27c58fd to 036aab0 Compare December 19, 2024 09:28
@lvsz
Copy link
Contributor

lvsz commented Dec 19, 2024

robodoo r+

robodoo pushed a commit that referenced this pull request Dec 19, 2024
Versions
--------
- 17.0+

Steps
-----
1. Use COP, HLN or NIO as currency;
2. create a SO or invoice with a non-integer amount total;
3. create a payment link;
4. pay using Mercado Pago.

Issue
-----
> Error processing payment
> Prices in COP currency must be expressed with integer values

Cause
-----
Our currency defaults follow the ISO 4217 standard for minor units. For
three currencies (COP, HLN & NIO), Mercado Pago only accepts integer
amounts instead of the standard 2 decimals, resulting in a failed
payment transaction.

Solution
--------
In the payload sent to Mercado Pago, round the amount down if it uses
one of the affected currencies.

opw-4191877

closes #191084

X-original-commit: 0b8aeca
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Levi Siuzdak <sile@odoo.com>
@robodoo robodoo closed this Dec 19, 2024
@fw-bot fw-bot deleted the saas-17.2-17.0-opw-4191877-mercado_pago_currency_rounding-sile-GPOx-fw branch January 2, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflict There was an error while creating this forward-port PR forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants