How to reference custom script? But needs to be hidden, as it will have credentials.

Highlighted
New Member
2 0 0

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.

0 Likes
Highlighted
Shopify Partner
2294 117 353

If you cannot exposes the script you will have to make a shopify app

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
0 Likes