I feel like it was just a few months ago someone else was asking this very similar thing, including wanting to handle payment processing themselves as well.
Seriously OP, do not do payment processing on your own unless you already have experience with going through PCI compliance. And if you did, you would already have made the decision to off load it to an actual payment processer lmao
Don't be a hero, offload payment processing to a third-party.