Created
November 5, 2020 11:38
-
-
Save edavydova/677a2a0c05befd152ae0f913dc8a2b5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/payments/piraeus.php b/app/payments/piraeus.php | |
index 9de5aeb163..9d96d843dd 100644 | |
--- a/app/payments/piraeus.php | |
+++ b/app/payments/piraeus.php | |
@@ -28,8 +28,8 @@ if (defined('PAYMENT_NOTIFICATION')) { | |
$pp_response = []; | |
$pp_response['transaction_id'] = $_REQUEST['TransactionId']; | |
- $pp_response['transaction_datetime'] = $_REQUEST['TransactionDateTime']; | |
- $pp_response['reason_text'] = $_REQUEST['ResponseDescription']; | |
+ $pp_response['transaction_datetime'] = empty($_REQUEST['TransactionDateTime']) ? '' : $_REQUEST['TransactionDateTime']; | |
+ $pp_response['reason_text'] = empty($_REQUEST['ResponseDescription']) ? '' : $_REQUEST['ResponseDescription']; | |
if ($_REQUEST['ResultCode'] == 0) { | |
if ( $_REQUEST['StatusFlag'] == 'Success' && in_array($_REQUEST['ResponseCode'], ['00', '08', '10', '11', '16'])) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/design/backend/templates/views/payments/components/cc_processors/piraeus.tpl b/design/backend/templates/views/payments/components/cc_processors/piraeus.tpl | |
index 2ccbe97ce3..6a6f1c2f7b 100644 | |
--- a/design/backend/templates/views/payments/components/cc_processors/piraeus.tpl | |
+++ b/design/backend/templates/views/payments/components/cc_processors/piraeus.tpl | |
@@ -10,7 +10,7 @@ | |
{assign var="backlink_url" value="payment_notification.cancel?payment=piraeus"|fn_url:"C":$protocol} | |
{assign var="ip_address" value=$smarty.server.SERVER_ADDR} | |
-{assign var="response_method" value="POST"} | |
+{assign var="response_method" value="GET"} | |
<p>{__("text_piraeus_notice", ["[website_url]" => $website_url, "[referrer_url]" => $referrer_url, "[success_url]" => $success_url, "[failure_url]" => $failure_url, "[backlink_url]" => $backlink_url, "[ip_address]" => $ip_address, "[response_method]" => $response_method])}</p> | |
<hr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment