WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

woocommerce_rest_checkout_process_payment_with_context хук-событие . WC 1.0

Process payment with context.

Использование

add_action( 'woocommerce_rest_checkout_process_payment_with_context', 'action_function_name_2966', 10, 2 );
function action_function_name_2966( $context, $result ){
	// action...
}
$context(PaymentContext)
Holds context for the payment, including order ID and payment method.
$result(PaymentResult)
Result object for the transaction.

Где вызывается хук

Checkout::process_payment()
woocommerce_rest_checkout_process_payment_with_context
woocommerce/packages/woocommerce-blocks/src/StoreApi/Routes/Checkout.php 520
do_action_ref_array( 'woocommerce_rest_checkout_process_payment_with_context', [ $context, &$result ] );

Где используется хук в ядре WooCommerce

woocommerce/packages/woocommerce-blocks/src/Payments/Api.php 54
add_action( 'woocommerce_rest_checkout_process_payment_with_context', array( $this, 'process_legacy_payment' ), 999, 2 );
woocommerce/packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php 43
add_action( 'woocommerce_rest_checkout_process_payment_with_context', [ $this, 'add_payment_request_order_meta' ], 8, 2 );
woocommerce/packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php 44
add_action( 'woocommerce_rest_checkout_process_payment_with_context', [ $this, 'add_stripe_intents' ], 9999, 2 );