We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3629d1e commit 7a9dc11Copy full SHA for 7a9dc11
src/Provider/SamanProvider.php
@@ -106,7 +106,7 @@ public function verifyTransaction(): bool
106
);
107
108
if (isset($response)) {
109
- if ($response === $this->getTransaction()->getPayableAmount()) {
+ if ($response > 0 && ($response - $this->getTransaction()->getPayableAmount() < PHP_FLOAT_EPSILON)) {
110
// double check the amount by transaction amount
111
$this->getTransaction()->setCardNumber($this->getParameters('SecurePan'), false); // no save()
112
$this->getTransaction()->setVerified(true); // save()
0 commit comments