Having metadata sent to be included in the customer object in Stripe is pretty easy using the wu_stripe_user_metadata filter.

You can add any number of key => value pairs in an array and that data will be added. The user ID and the plan object are passed to the filter to be used.

add_filter('wu_stripe_user_metadata', function($meta_data, $user_id, $plan) {

$meta_data['key1'] = 'value1';
$meta_data['key2'] = 'value2';

return $meta_data;

}, 10, 3);
Did this answer your question?