From 922ba374591c5fbef27e4cb11e204e7d196b9e0f Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Thu, 27 Feb 2025 10:12:18 -0500 Subject: [PATCH] fix: debug code removed from checkout mutation (#916) --- includes/data/loader/class-wc-db-loader.php | 2 +- includes/data/mutation/class-checkout-mutation.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/data/loader/class-wc-db-loader.php b/includes/data/loader/class-wc-db-loader.php index ebb19423..37fe30e6 100644 --- a/includes/data/loader/class-wc-db-loader.php +++ b/includes/data/loader/class-wc-db-loader.php @@ -22,7 +22,7 @@ use WPGraphQL\WooCommerce\Model\Tax_Rate; */ class WC_Db_Loader extends AbstractDataLoader { /** - * Stores loaded CPTs. + * Stores loaded data objects. * * @var array */ diff --git a/includes/data/mutation/class-checkout-mutation.php b/includes/data/mutation/class-checkout-mutation.php index cb98184f..fd339dbe 100644 --- a/includes/data/mutation/class-checkout-mutation.php +++ b/includes/data/mutation/class-checkout-mutation.php @@ -492,8 +492,6 @@ class Checkout_Mutation { if ( WC()->cart->needs_payment() ) { $available_gateways = WC()->payment_gateways->get_available_payment_gateways(); - - \codecept_debug( $available_gateways ); if ( ! isset( $available_gateways[ $data['payment_method'] ] ) ) { throw new UserError( __( 'Invalid payment method.', 'wp-graphql-woocommerce' ) ); } else {