Winging it with stripe is fine to get started quickly, but once you have a couple of customers switch to a Merchant of Record like Paddle.
On your end they work much like stripe: you get credit card input html and an api. But legally they are a reseller of your software so they handle all tax collection and payment, invoice formatting, plus some legal issues. In exchange they take a bigger cut than stripe, like 5%.