Skip to content

Commit

Permalink
fix: corrige nome do atributo
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewalkermo committed Jun 3, 2024
1 parent 8885757 commit 62145ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateways/IuguGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ private function parseInvoice($iuguInvoice, ?Invoice $invoice = null): Invoice
$invoice->creditCard = new CreditCard();
}
$invoice->creditCard->brand = $iuguInvoice->credit_card_brand ?? null;
$invoice->creditCard->lastDigits = $iuguInvoice->credit_card_last_4 ?? $iuguInvoice->credit_card_transaction->last_4;
$invoice->creditCard->lastDigits = $iuguInvoice->credit_card_last_4 ?? $iuguInvoice->credit_card_transaction->last4;

$holderName = null;
foreach ($iuguInvoice->variables as $iuguInvoiceVariable) {
Expand Down

0 comments on commit 62145ea

Please sign in to comment.