Well you should focus on the end, think about what it'll be like when it is done. Stop the internal dialogue of "I hate doing X" and instead say "I can't wait to see this out in the wild" and know this is a single step closer to that.
I was going to ask why you 'hate' the payment provider but I can see it's because their SDK is poorly documented. So the truth is more like "I'm frustrated because I can not make steady progress, because I have to stop to find a workaround for yet another edge case". So you can not get into a flow. you're just frustrated.
I suggest you stop coding all together and master that SDK (with all of its shortcomings). Then you'll have a level of competency that will help you move forward. I question that this payment provider is 'the easiest thing' if they are that hard to work with. Are you using Stripe? They are actually very good.
One more thing, this is a bit revealing I think: "I'm questioning if I even want to be in this industry"
Yeah, that's the main problem right there, here's why.
Let's say you needed to figure out this exact payment processor with their shitty Go API in order to impress a hot girl.
Let me tell you something, I have pulled off MIRACLES to impress women. I got us behind the scenes at a Pro Hockey game once to impress a girl. I got us in the captains chair AND the engine room on a cruise ship once to impress a girl.
You are never going to be intrinsically motivated on this project and that's the main problem. By the time you had to motivate yourself enough times to post to HN about it, you are about worn out already.
Life is too short man. STOP. Think about what you would LOVE to do and go do that.
Ask your brain very, very good questions and you will be surprised at how amazing your answers are. Write, rewrite and edit your questions until they are perfect, then ask yourself that question.
Get specific. I'm talking like "How can I have financially rewarding, fulfilling, secure work that I love to do where I make a massive impact, become an expert in my field, feel significant with an impressive title, unlimited growth and enjoy it the whole way with no regrets?"
Ask yourself a specific question like that and I promise you your brain will come up with an answer.
Then, go do that.
If you were doing that, you'd have mastered this problem by now.
If you can't think that globally right now, use this technique to get past this one problem.
Make it a huge ask: "How can I finish this billing integration, have fun the whole time while writing clean, error free, standards compliant code and have it done by the end of January?" Your brain will tell you.
Trust yourself.
Last thing here: If you 'think' you 'might' want to get out of this field, then you already know you should be out.
You can code. Coding in ANY job is a superpower.
Go find something else to love.
It's out there.