From 2a33175bdf93a6263ca6b8bec6d4efe99de5ea3d Mon Sep 17 00:00:00 2001 From: Christopher Willard Date: Mon, 26 Mar 2018 12:15:06 -0400 Subject: [PATCH] Add validation for the card property before normal authorizations --- src/Message/AuthorizeRequest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Message/AuthorizeRequest.php b/src/Message/AuthorizeRequest.php index 2e522ef..472e6bb 100644 --- a/src/Message/AuthorizeRequest.php +++ b/src/Message/AuthorizeRequest.php @@ -316,6 +316,8 @@ public function getData() $data['ERRORURL'] = $this->getErrorUrl(); } } else { + $this->validate('card'); + $this->getCard()->validate(); $data['ACCT'] = $this->getCard()->getNumber();