dever 7 anos atrás
pai
commit
fadc5e55bb
2 arquivos alterados com 41 adições e 0 exclusões
  1. 3 0
      payment/lib/Payfort.php
  2. 38 0
      payment/sdk/payfort/trace.log

+ 3 - 0
payment/lib/Payfort.php

@@ -177,6 +177,9 @@ class Payfort extends Core
         if (empty($param)) {
             return $this->out('invalid_parameters');
         }
+        if (!isset($param['signature'])) {
+            return $this->out('invalid_parameters');
+        }
 
         $post                   = $param;
         $responseSignature      = $param['signature'];

+ 38 - 0
payment/sdk/payfort/trace.log

@@ -7146,3 +7146,41 @@ Array
 )
 
 
+========================================================
+
+Fort Redirect Request Parameters 
+Array
+(
+    [amount] => 10000
+    [currency] => SAR
+    [merchant_identifier] => qRVCYhzy
+    [access_code] => IvPf2BwOqHwvZ6PrE8xU
+    [merchant_reference] => 947212569
+    [customer_email] => test@payfort.com
+    [command] => AUTHORIZATION
+    [language] => en
+    [return_url] => http://192.168.33.10/sg/payment/sdk/payfort/route.php?r=processResponse
+    [payment_option] => SADAD
+    [signature] => ae2bbcf5c7d17c2eca16745138849380b415eeceebeabb8a61507f4a51ca54ae
+)
+
+
+========================================================
+
+Fort Redirect Request Parameters 
+Array
+(
+    [amount] => 10000
+    [currency] => SAR
+    [merchant_identifier] => qRVCYhzy
+    [access_code] => IvPf2BwOqHwvZ6PrE8xU
+    [merchant_reference] => 1673426579
+    [customer_email] => test@payfort.com
+    [command] => AUTHORIZATION
+    [language] => en
+    [return_url] => http://192.168.33.10/sg/payment/sdk/payfort/route.php?r=processResponse
+    [payment_option] => SADAD
+    [signature] => 945bf802cf02c7264e68f4a71559bd5e6dfddd9dd758f8c824141fe59a4a3b0b
+)
+
+