diff --git a/includes/class-omise-capabilities.php b/includes/class-omise-capabilities.php index c0a73478..077d9309 100644 --- a/includes/class-omise-capabilities.php +++ b/includes/class-omise-capabilities.php @@ -97,8 +97,8 @@ public static function isFromCheckoutPage() if (!$wp) { return false; } - - if (wp_doing_ajax() && $_GET['wc-ajax'] == 'update_order_review') { + $ajaxActions = ['update_order_review', 'checkout']; + if (wp_doing_ajax() && in_array($_GET['wc-ajax'], $ajaxActions)) { return true; }