Skip to content

Commit

Permalink
solve order item error 3D Pay
Browse files Browse the repository at this point in the history
  • Loading branch information
sportakal committed May 30, 2022
1 parent a055485 commit f476118
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samples/threeDSecurePay.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
$transaction->setType('sales');
$transaction->setInstallmentCnt("");
$transaction->setAmount(80);
$transaction->setCurrencyCode('TRY');
$transaction->setCurrencyCode('EUR');
$transaction->setCardholderPresentCode('0');
$transaction->setMotoInd('N');
$transaction->setDescription('test payment');
Expand Down
10 changes: 10 additions & 0 deletions src/Results/ThreeDSecurePayResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ public function setHashData(): void
$pay = new ThreeDSecurePay($this->request_model);
$this->hash_data = $pay->getHashData();
}

public function getStatus(): bool
{
return ($this->postResultModel->procreturncode ?? '') === "00";
}

public function getStatusCode(): string
{
return $this->postResultModel->procreturncode ?? '';
}
}

0 comments on commit f476118

Please sign in to comment.