Hello @inabizzel ,
Thank you for using Direct Stripe.
I have a big update planned for august in order to be set for SCA regulation coming in September. I won’t add any feature for a while I’m afraid. ( And I also think that as it is not a Stripe feature, that probably should remain custom code ).
That can be done as in the recipe, meaning using custom code. You can set the code on your server and use a custom WordPress API route as the endpoint.
I had written a gist example that uses a method that would work in this case, you can see it at https://gist.github.com/New0/d72217de1e60871cf938715c2fd03b61
In your case the webhook needs to be called on subscription update and the function called by the API route would handle the implementation of installments_paid metadata.
You would also need to use the “direct_stripe_subscription_data” filter hook to add “installments_paid: 0,” to the metadata during subscription creation. ( https://newo.me/direct-stripe-actions-and-filters-hooks/ )
Kind regards,
Nico