IF the merchant is trying to send the API request from javascript in his code, the error below will appear.

The solution is to send the request from the backend itself not from JavaScript.