To add the option to another module menu on the detail view you need to look into custom/modules/AOS_Invoices/metadata/detailviewdefs.php
Compare this file to the one in the custom/modules/accounts/metadata
You should be looking at the buttons array… this will add the button and this is as far as I can help unfortuately as I have not used the Stripe Payments Module.