We are currently calling third party(our API to OPT-IN that user in our system) API using ajax in cart page for OPT-IN feature. Consider that user is already created in our system at the time of registration using webhook. Now just need to OPT-IN that user.
But by calling API using ajax we are making Access Token Visible. So, it's not secure way to implemt API'S. To implement API'S securely we have to call API'S at server side.
So, anyone can tell us how to call Server Side API's.
Thanks in Advance
Thanks for reply. Already checked that doc. But didn't foud How to implement third party API in any front end page.
I am creating public APP. In that checking the user status in our system using API. Depending upon API response have to decide Show/Hide one button (that button is added in cart page.). I am talking about implementation of our API for creating APP. That API need Access Token which is provided by us.
So, for security purpose of access token need to implement server side API.