From 927d9d114273588213040e2758cf8cd71250b425 Mon Sep 17 00:00:00 2001 From: Hamed Date: Thu, 12 Apr 2018 18:41:04 +0430 Subject: [PATCH 1/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c6ae42bc..9fe065b4 100644 --- a/README.md +++ b/README.md @@ -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 : \Gateway::make(new \Payir())) ---------- From de900ad439bbe09998bd71eb655d09c30e9a5083 Mon Sep 17 00:00:00 2001 From: Hamed Date: Thu, 12 Apr 2018 18:41:38 +0430 Subject: [PATCH 2/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fe065b4..aae09c46 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Available Banks: 6. ZARINPAL 7. PAYPAL (**New**) 8. ASAN PARDAKHT (**New**) - 9. PAY.IR (**New**) (to use : \Gateway::make(new \Payir())) + 9. PAY.IR (**New**) (to use : new \Payir()) ---------- From 63c366ea5af2e2d95dce64583ada66ab79382021 Mon Sep 17 00:00:00 2001 From: mahdi farhadpour Date: Tue, 15 May 2018 16:27:02 +0430 Subject: [PATCH 3/6] add PAYIR --- .../2016_05_02_193213_create_gateway_transactions_table.php | 1 + 1 file changed, 1 insertion(+) diff --git a/migrations/2016_05_02_193213_create_gateway_transactions_table.php b/migrations/2016_05_02_193213_create_gateway_transactions_table.php index fb58c990..d2b8cfaa 100644 --- a/migrations/2016_05_02_193213_create_gateway_transactions_table.php +++ b/migrations/2016_05_02_193213_create_gateway_transactions_table.php @@ -34,6 +34,7 @@ public function up() Enum::SAMAN, Enum::ASANPARDAKHT, Enum::PAYPAL, + Enum::PAYIR, ]); $table->decimal('price', 15, 2); $table->string('ref_id', 100)->nullable(); From 68d245d91efec5e01ffbb470896a9e18bc41a38f Mon Sep 17 00:00:00 2001 From: Mehrdad MotaghiFar Date: Wed, 23 May 2018 14:14:32 +0430 Subject: [PATCH 4/6] Fix Saman null 'tracking_code' & 'card_number' Fix Saman null 'tracking_code' & 'card_number' --- src/Saman/Saman.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Saman/Saman.php b/src/Saman/Saman.php index c89f067c..4b027feb 100644 --- a/src/Saman/Saman.php +++ b/src/Saman/Saman.php @@ -98,7 +98,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'); From d790326123d5db52b95b6fabb1f24d709d9bc27e Mon Sep 17 00:00:00 2001 From: Majid Abdolhosseini Date: Sun, 15 Jul 2018 17:10:24 +0430 Subject: [PATCH 5/6] in pasargad gateway dont use hardcoded urls --- src/Pasargad/Pasargad.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Pasargad/Pasargad.php b/src/Pasargad/Pasargad.php index ed779eb5..55bc32a2 100644 --- a/src/Pasargad/Pasargad.php +++ b/src/Pasargad/Pasargad.php @@ -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") { @@ -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); From 2e51719850d3acb24b10965d5967c8dff35e4763 Mon Sep 17 00:00:00 2001 From: saeed sajadi Date: Sat, 4 Aug 2018 07:17:53 +0430 Subject: [PATCH 6/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aae09c46..b71b2f78 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ You can make connection to bank by several way (Facade , Service container): // در اینجا // شماره تراکنش بانک را با توجه به نوع ساختار دیتابیس تان // در جداول مورد نیاز و بسته به نیاز سیستم تان - // ذخیر کنید . + // ذخیره کنید . return $gateway->redirect();