All the “advice” around here is scary. The only thing you should do when you hear WordPress is to run away, and definitely not entrust it with customer details including payment details.
WordPress is an old legacy pile of crap and a brilliant example of how not to design a web application. The awful code quality inevitably leads to regular security issues which is dangerous for a website selling things; an attacker can steal customer data or replace the payment page with something that steals card details. Performance is another issue. Anytime a WordPress website is linked on a high-traffic website (Hacker News, Reddit, etc) it goes down - something that just doesn’t seem to happen with most other websites. Not surprising when it needs to make 50 DB queries just to render the home page.
Maintenance is also another issue; you need to maintain a server (definitely avoid shared hosting for anything containing people’s personal data), secure it, update it regularly, etc. Do you have the expertise and time to do it? Shopify is cheap in comparison.