Skip to content

Commit 922ba37

Browse files
authored
fix: debug code removed from checkout mutation (#916)
1 parent 36e79d3 commit 922ba37

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

includes/data/loader/class-wc-db-loader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
class WC_Db_Loader extends AbstractDataLoader {
2424
/**
25-
* Stores loaded CPTs.
25+
* Stores loaded data objects.
2626
*
2727
* @var array
2828
*/

includes/data/mutation/class-checkout-mutation.php

-2
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,6 @@ protected static function validate_checkout( &$data ) {
492492

493493
if ( WC()->cart->needs_payment() ) {
494494
$available_gateways = WC()->payment_gateways->get_available_payment_gateways();
495-
496-
\codecept_debug( $available_gateways );
497495
if ( ! isset( $available_gateways[ $data['payment_method'] ] ) ) {
498496
throw new UserError( __( 'Invalid payment method.', 'wp-graphql-woocommerce' ) );
499497
} else {

0 commit comments

Comments
 (0)