Skip to content

Commit

Permalink
fix(mercadopago): Parse payment cancelled status to voided
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Jan 23, 2025
1 parent 612de4c commit 5cc8d74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/apps/mercadopago/src/mp-create-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ const parsePaymentStatus = (status: string): TransactionStatusEnum => {
case 'refunded':
return status;
case 'rejected':
case 'cancelled':
return 'voided';
case 'in_process':
return 'under_analysis';
case 'approved':
return 'paid';
case 'charged_back':
return 'in_dispute';
case 'cancelled':
return 'unauthorized';
default:
return 'pending';
}
Expand Down

0 comments on commit 5cc8d74

Please sign in to comment.