Skip to content

Commit

Permalink
feat: add card detail validation on complete transaction mall status …
Browse files Browse the repository at this point in the history
…response
  • Loading branch information
Matiasnickolas committed Sep 5, 2024
1 parent 2b47afa commit c274121
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(array $json)
$this->accountingDate = Utils::returnValueIfExists($json, 'accounting_date');
$this->transactionDate = Utils::returnValueIfExists($json, 'transaction_date');
$this->cardDetail = Utils::returnValueIfExists($json, 'card_detail');
$this->cardNumber = Utils::returnValueIfExists($this->cardDetail, 'card_number');
$this->cardNumber = Utils::returnValueIfExists($this->cardDetail ?? [], 'card_number');

$this->details = [];
if (is_array($json['details'])) {
Expand Down

0 comments on commit c274121

Please sign in to comment.