Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented 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

Forward-Port-Of: #191084
Forward-Port-Of: #185664

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: 8e2fcdc
@robodoo
Copy link
Contributor

robodoo commented Dec 19, 2024

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Dec 19, 2024

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Dec 19, 2024
@lvsz
Copy link
Contributor

lvsz commented Dec 19, 2024

@robodoo r+

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Dec 19, 2024
@robodoo
Copy link
Contributor

robodoo commented Dec 19, 2024

@lvsz @AntoineVDV 'ci/runbot' failed on this reviewed PR.

robodoo pushed a commit that referenced this pull request Dec 20, 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 #191214

X-original-commit: 8e2fcdc
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Levi Siuzdak <sile@odoo.com>
robodoo pushed a commit that referenced this pull request Dec 20, 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 #191214

X-original-commit: 8e2fcdc
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Levi Siuzdak <sile@odoo.com>
robodoo pushed a commit that referenced this pull request Dec 21, 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 #191214

X-original-commit: 8e2fcdc
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Levi Siuzdak <sile@odoo.com>
@robodoo robodoo added the 18.1 label Dec 21, 2024
@robodoo robodoo closed this Dec 21, 2024
@fw-bot fw-bot deleted the master-17.0-opw-4191877-mercado_pago_currency_rounding-sile-g1CJ-fw branch January 4, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
18.1 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