Skip to content

Commit e469890

Browse files
authored
Updated some more rescode to make the transaction status more consistent. (#16)
* updated some more rescode * removed type casting * PHP 5.3 support * changed array to be sting, fixed a bug
1 parent a03193a commit e469890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message/DirectPostCompletePurchaseResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DirectPostCompletePurchaseResponse extends AbstractResponse
1414
*/
1515
public function isSuccessful()
1616
{
17-
return $this->summaryCode() && (int) $this->getCode() == 00;
17+
return $this->summaryCode() && in_array($this->getCode(), array('00', '08', '11'));
1818
}
1919

2020
public function summaryCode()

0 commit comments

Comments
 (0)