Hi there,
I'm setting up a payment integration for our app, which requires API responses from a backend SDK we have hosted on AWS lambda.
Upon a button click, I've tried to set the API responses as variables, and piece the variables together by concatenating the varibles with pieces of the script, and then injecting it into a script tag.
For some reason this flow doesn't work, but when I just insert the scripts manually with the API responses they do work, thus I'm led to believe I'm doing something wrong in terms of injecting the API response into my jS function.
Any ideas?