woocommerce_paypal_standard_order_created_response
woocommerce_paypal_standard_order_created_response
Appears in: woocommerce.10.4.3
Hook Type: action
See hook in action
Displaying hooks found in version: woocommerce.10.4.3do_action('woocommerce_paypal_standard_order_created_response') is found 1 times:
- /includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php line 180
* @param int|string $http_code The HTTP status code from the PayPal API response. * @param array $response_data The decoded response data from the PayPal API * @param WC_Order $order The WooCommerce order object. */ do_action( 'woocommerce_paypal_standard_order_created_response', $http_code, $response_array, $order ); if ( ! in_array( $http_code, array( 200, 201 ), true ) ) { $paypal_debug_id = isset( $response_data['debug_id'] ) ? $response_data['debug_id'] : null; throw new Exception( 'PayPal order creation failed. Response status: ' . $http_code . '. Response body: ' . $body ); }