i want to add stripe subscriptions and be able to add or change user role after each successful payments completed.
I don't know about the stripe procedure but since you mention a "successful" payment, I assume you just need the User Roles Managing procedure.
Have a look at this @Hyperbytes's great video on that subject:
I suppose that the only thing that changes in your case is that the whole procedure is executed on the Stripe Paument success event and not by clicking a button
yes i need a stripe event to change it. those subscriptions should trigger that role event.