Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
Fixed a bug where successful zero-dollar card validations would retur…
Browse files Browse the repository at this point in the history
…n as failed
  • Loading branch information
jmauzyk committed Oct 31, 2020
1 parent 4c1b614 commit 217833a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Message/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ class Response extends AbstractResponse
{
public function isSuccessful()
{
return isset($this->data['respcode']) && $this->data['respcode'] == '00';
return isset($this->data['respcode']) && (
$this->data['respcode'] == '00' || ($this->data['amount'] == '0' && $this->data['respcode'] === '785')
);
}

public function getTransactionReference()
Expand Down

0 comments on commit 217833a

Please sign in to comment.