Skip to content

Commit

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

0 comments on commit b799efa

Please sign in to comment.