Custom value in woocommerce webhook payload
<p>I have webhook with topic <strong>Order Updated</strong>. Webhook delivers payload (Order information) at someotherdomain.com. I want to add extra field from checkout form to be delivered at someotherdomain.com along with order information. </p>

<p>I have created custom checkout field by:</p>

<pre><code>add_action( 'woocommerce_after_order_notes', 'fs_custom_checkout_field' );


function fs_custom_checkout_field( $checkout ) {


echo '&lt;div id="my_custom_checkout_field"&gt;&lt;h2&gt;' . __('Extra Information') . '&lt;/h2&gt;';

woocommerce_form_field( 'fs_psid_field', array(
    'type'          =&gt; 'text',
    'class'         =&gt; array('my-field-class form-row-wide'),
    'label'         =&gt; __('Fill in this field'),
    'placeholder'   =&gt; __('Enter something'),
    ), $checkout-&gt;get_value( 'fs_psid_field' ));

echo '&lt;/div&gt;';
</code></pre>

<p>}</p>

<p>And saved meta as:</p>

<pre><code>add_action( 'woocommerce_checkout_update_order_meta', 'my_custom_checkout_field_update_order_meta' );


function my_custom_checkout_field_update_order_meta( $order_id ) {
    if ( ! empty( $_POST['fs_psid_field'] ) ) {
        update_post_meta( $order_id, 'fs_psid_field', sanitize_text_field( $_POST['fs_psid_field'] ) );
    }
}
</code></pre>

<p>But field <strong>fs_psid_field</strong> is not posted via webhook. </p>

<p>Q: How can I post value of this field via Woocommerce webhook?</p>