That is completely legal and ethical.
WooCommerce is an open source, GPL project which allows people to modify the code in any way, including changing Stripe details, provided that they comply with the terms of the license.
Licenses are a fundamental part of open source precisely so that in situations like this everyone knows the rules of the game.