Skip to content

Commit

Permalink
Add validation for the card property before normal authorizations
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguychrisw committed Mar 26, 2018
1 parent a3d20ac commit 2a33175
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Message/AuthorizeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ public function getData()
$data['ERRORURL'] = $this->getErrorUrl();
}
} else {
$this->validate('card');

$this->getCard()->validate();

$data['ACCT'] = $this->getCard()->getNumber();
Expand Down

0 comments on commit 2a33175

Please sign in to comment.