From 98bfbbad5e6bda4925b230f36b2b917118bb14e9 Mon Sep 17 00:00:00 2001 From: Wouter van Os Date: Fri, 24 Aug 2018 15:35:42 +0200 Subject: [PATCH] Fix for the rename between bancontact and mistercash. --- src/mollie/callback.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mollie/callback.php b/src/mollie/callback.php index d4cd4c0..8e72402 100644 --- a/src/mollie/callback.php +++ b/src/mollie/callback.php @@ -29,7 +29,13 @@ if(isset($_POST['id'])) { $transaction = mysql_fetch_assoc($transactionQuery); - $_GATEWAY = getGatewayVariables('mollie' . $transaction['method'] . '_devapp'); + $method = $transaction['method']; + + if ($method === Mollie_API_Object_Method::MISTERCASH) { + $method = 'bancontact'; + } + + $_GATEWAY = getGatewayVariables('mollie' . $method . '_devapp'); if ($transaction['status'] != 'open') { logTransaction($_GATEWAY['paymentmethod'], array_merge($transaction, $_POST), 'Callback - Failure 3 (Transaction not open)');