Skip to content

Commit b513635

Browse files
committed
[FIX] pos_mercado_pago: handle PROCESSING state
The Mercado Pago 'PROCESSING' payment status was not handled. As a result, when receiving this status, the payment was treated as failed and the user saw an 'Unknown payment status' message. This fix treats 'PROCESSING' as an in-progress state, just like 'OPEN' and 'ON_TERMINAL'. It triggers the same retry mechanism. opw-4918455 closes odoo#218990 Signed-off-by: Stéphane Vanmeerhaeghe (stva) <stva@odoo.com>
1 parent 470a1f1 commit b513635

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/pos_mercado_pago/static/src/app/payment_mercado_pago.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class PaymentMercadoPago extends PaymentInterface {
145145
// that was actually canceled/finished by the user on the terminal.
146146
// Then the strategy here is to ask Mercado Pago MAX_RETRY times the
147147
// payment intent status, hoping going out of this status
148-
if (["OPEN", "ON_TERMINAL"].includes(last_status_payment_intent.state)) {
148+
if (["OPEN", "ON_TERMINAL", "PROCESSING"].includes(last_status_payment_intent.state)) {
149149
return await new Promise((resolve) => {
150150
let retry_cnt = 0;
151151
const s = setInterval(async () => {

0 commit comments

Comments
 (0)