Skip to content

Commit

Permalink
Merge branch 'dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hpakdaman authored Sep 20, 2018
2 parents 6d52db4 + e6abdcd commit 3625f90
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Available Banks:
6. ZARINPAL
7. PAYPAL (**New**)
8. ASAN PARDAKHT (**New**)
9. PAY.IR (**New**)
9. PAY.IR (**New**) (to use : new \Payir())
----------


Expand Down Expand Up @@ -71,7 +71,7 @@ You can make connection to bank by several way (Facade , Service container):
// در اینجا
// شماره تراکنش بانک را با توجه به نوع ساختار دیتابیس تان
// در جداول مورد نیاز و بسته به نیاز سیستم تان
// ذخیر کنید .
// ذخیره کنید .
return $gateway->redirect();
Expand Down
4 changes: 2 additions & 2 deletions src/Pasargad/Pasargad.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ protected function verifyPayment()
{
$processor = new RSAProcessor($this->config->get('gateway.pasargad.certificate-path'),RSAKeyType::XMLFile);
$fields = array('invoiceUID' => Input::get('tref'));
$result = Parser::post2https($fields,'https://pep.shaparak.ir/CheckTransactionResult.aspx');
$result = Parser::post2https($fields,$this->checkTransactionUrl);
$check_array = Parser::makeXMLTree($result);

if ($check_array['resultObj']['result'] != "True") {
Expand All @@ -150,7 +150,7 @@ protected function verifyPayment()
$data = sha1($data, true);
$data = $processor->sign($data);
$fields['sign'] = base64_encode($data);
$result = Parser::post2https($fields,"https://pep.shaparak.ir/VerifyPayment.aspx");
$result = Parser::post2https($fields,$this->verifyUrl);
$array = Parser::makeXMLTree($result);
if ($array['actionResult']['result'] != "True") {
$this->newLog(-1, Enum::TRANSACTION_FAILED_TEXT);
Expand Down
3 changes: 2 additions & 1 deletion src/Saman/Saman.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ function getCallback()
protected function userPayment()
{
$this->refId = Input::get('RefNum');
$this->trackingCode = Input::get('ResNum');
$this->trackingCode = Input::get('‫‪TRACENO‬‬');
$this->cardNumber = Input::get('‫‪SecurePan‬‬');
$payRequestRes = Input::get('State');
$payRequestResCode = Input::get('StateCode');

Expand Down

0 comments on commit 3625f90

Please sign in to comment.