Goal: I need to be able to make a REST API call to an AWS endpoint when a user clicks a custom button on my product page.
I can create a script and connect it to my product page, but the script is visible in the source code and it's not hidden which would expose my AWS credentials.
I looked into Webhooks, Notifications, Events and such - but I am totally stuck here.
Something like a custom Webhook would be perfect, but Shopify does not allow this "yet".
Is there some possible way to invoke a script with the click of a button, but have the contents of the script completely hidden?
Thanks for any advice/direction in advance.