mirror of
https://github.com/wp-graphql/wp-graphql-woocommerce.git
synced 2026-08-14 12:53:44 +02:00
fix: debug code removed from checkout mutation (#916)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user