From e37df211818ce1d82309a99ed2d21066dc45cb9f Mon Sep 17 00:00:00 2001 From: Mauko Maunde Date: Thu, 11 Jun 2020 15:07:52 +0300 Subject: [PATCH] Added resend STK Push button on thank you page. --- inc/functions.php | 39 ++++++++++++++++++++++++++++++++++----- inc/wc_mpesa_gateway.php | 24 ++++++++++++------------ osen-wc-mpesa.php | 22 +++++++++------------- updates.json | 12 ++++++------ 4 files changed, 61 insertions(+), 36 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index 534881e..b2a146c 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -33,10 +33,6 @@ function wc_mpesa_post_id_by_meta_key_and_value($key, $value) $reference = $order_id; } - if ($order->get_payment_method() !== 'mpesa') { - return; - } - $type = ($idtype == 4) ? 'Pay Bill' : 'Buy Goods and Services'; ?>