Skip to content

Commit

Permalink
fix: trata externally_paid como paid
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewalkermo committed Oct 14, 2024
1 parent 1d133a4 commit 4bb8f3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Gateways/IuguGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class IuguGateway implements Gateway
{
private const STATUS_PENDING = 'pending';
private const STATUS_PAID = 'paid';
private const STATUS_EXTERNALLY_PAID = 'externally_paid';
private const STATUS_CANCELED = 'canceled';
private const STATUS_IN_ANALYSIS = 'in_analysis';
private const STATUS_DRAFT = 'draft';
Expand Down Expand Up @@ -172,6 +173,7 @@ private static function iuguStatusToMultiPayment($iuguStatus): string
case self::STATUS_PARTIALLY_PAID:
return Invoice::STATUS_PENDING;
case self::STATUS_PAID:
case self::STATUS_EXTERNALLY_PAID:
case self::STATUS_AUTHORIZED:
case self::STATUS_IN_PROTEST:
return Invoice::STATUS_PAID;
Expand Down

0 comments on commit 4bb8f3b

Please sign in to comment.