Skip to content

Commit

Permalink
Send CVV2 with card reference transactions
Browse files Browse the repository at this point in the history
If the CVV2 is available, it should be sent with the transaction.
  • Loading branch information
Korri authored Feb 27, 2018
1 parent deeeaf3 commit 02d7df2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Message/AuthorizeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ public function getData()

if ($this->getCardReference()) {
$data['ORIGID'] = $this->getCardReference();
if ($this->getCard()) {
$data['CVV2'] = $this->getCard()->getCvv();
}
} else {
$this->validate('card');
$this->getCard()->validate();
Expand Down

0 comments on commit 02d7df2

Please sign in to comment.