diff --git a/src/StoreApi/Routes/V1/Checkout.php b/src/StoreApi/Routes/V1/Checkout.php index c7dac9c0236..5a5112edf84 100644 --- a/src/StoreApi/Routes/V1/Checkout.php +++ b/src/StoreApi/Routes/V1/Checkout.php @@ -518,7 +518,7 @@ private function process_payment( \WP_REST_Request $request, PaymentResult $paym throw new RouteException( 'woocommerce_rest_checkout_invalid_payment_result', __( 'Invalid payment result received from payment method.', 'woo-gutenberg-products-block' ), 500 ); } } catch ( \Exception $e ) { - throw new RouteException( 'woocommerce_rest_checkout_process_payment_error', $e->getMessage(), 400 ); + throw new RouteException( 'woocommerce_rest_checkout_process_payment_error', $e->getMessage(), 402 ); } }