I'm working on a Squarespace site, which does not allow any server-side scripting. So I can only use javascript, but I need to update the purchase with tax information from a 3rd party app before the product is submitted to the payment processor, and then send information about the transaction response to the tax app.
Both the payment processor and the tax processor have decent api's. Here is documentation about how to do this if you have access to the backend: http://dev.taxcloud.net/2013/10/03/taxcloud-js_stripe/. So basically, I need to figure out how to reverse engineer this php script to be handled with javascript while not triggering the cross-site scripting warnings if possible.
Also, is there a way to store the API keys securely. If I use a javascript http request, it's going to have to pull out the key, right? I don't want to give every client access to the key.
Anyway, I just want to:
-make sure this is possible.
-make sure this is not a gross breach of security.
-See if you all can give me any leads on where to start and security things to watch out for