For context:
The store I’m working on sells products from a third party vendor.
Task:
Build a front end app that calls Vendor API so a customer can see the products available from the Vendor and purchase in the Shopify store
Problem:
I have to hide an API key to make API calls to Vendor so I’m thinking of handling that on the server side. I’m not sure how to add products to cart in Shopify store and go to checkout since the products don’t actually live in the store backend.
So far all I have for infrastructure is:
Liquid front end => host own server handling API calls to Vendor => Vendor confirms request from server and returns list of products => server relays to front end the list of products
I’m not sure how to get those products from the Vendor to the Shopify backend so the store “thinks” it has the products, so a customer can checkout. I thought of creating the products on server side using Admin API, but will the products persist after customer checkout? I’ll be writing the server in Node/Express.
Thank you for your time and help!