Right now, we're calling our WP REST API endpoints which then make the real calls to Shopify. We made this decision to improve the security of the Storefront API keys.
However, there are major reasons why we should make these calls in JS directly:
- Takes the load off the WordPress sever, when many customers are buying at once
- Allows for faster load times by removing a middle-man server call