fix: debug code removed from checkout mutation (#916)

This commit is contained in:
Geoff Taylor
2025-02-27 10:12:18 -05:00
committed by GitHub
parent 36e79d3b34
commit 922ba37459
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -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
*/
@@ -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 {