diff --git a/src/Webpay/TransaccionCompleta/Responses/MallTransactionStatusResponse.php b/src/Webpay/TransaccionCompleta/Responses/MallTransactionStatusResponse.php index 5b5adea0..2383f4e1 100644 --- a/src/Webpay/TransaccionCompleta/Responses/MallTransactionStatusResponse.php +++ b/src/Webpay/TransaccionCompleta/Responses/MallTransactionStatusResponse.php @@ -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'])) {