From e2d34c230d6219e135cecf843ccbf630a5db932d Mon Sep 17 00:00:00 2001 From: synuk <62522038+synuk@users.noreply.github.com> Date: Tue, 26 Jul 2022 16:05:55 +0100 Subject: [PATCH] fix success/failure redirect --- modules/gateways/coingate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gateways/coingate.php b/modules/gateways/coingate.php index f0427f3..7ac562c 100644 --- a/modules/gateways/coingate.php +++ b/modules/gateways/coingate.php @@ -153,9 +153,9 @@ function coingate_link(array $params) 'price_currency' => $currencyCode, 'receive_currency' => $receiveCurrency, - 'cancel_url' => $systemUrl . '/clientarea.php', + 'cancel_url' => $systemUrl . '/viewinvoice.php?id=' . $invoiceId . '&paymentfailed=1', 'callback_url' => $systemUrl . '/modules/gateways/callback/' . $moduleName . '.php', - 'success_url' => $systemUrl . '/viewinvoice.php?id=' . $invoiceId, + 'success_url' => $systemUrl . '/viewinvoice.php?id=' . $invoiceId . '&paysuccess=1', 'title' => $companyName, 'description' => $description ]);