Well, since it seems nobody replies on questions here anymore, I'm gonna answer it for whomever might need it. The useEffect in the PayPalSubscribeButton.tsx was reseting the connection, removing it fixed the issue. I don't really understand why, but it worked.