I'm trying to process apple pay payments on my Django site.
While I understand that this is better off in the back end, I currently am running the scripts in a JS static file, which means that that info is public. How can I set up my project to run a back-end python script when the apple pay button is clicked? Please discuss file organization in your answer.
(For simplicity, you can just assume I am trying to run a script that loads another website instead of going through the whole apple pay process.)
I came across this resource and it looked like it could be along the right track, but I think it might be overcomplicating things. https://github.com/Jason-Oleana/How-to-run-a-python-script-by-clicking-on-an-html-button
Via Active questions tagged javascript - Stack Overflow https://ift.tt/kr5SftR
Comments
Post a Comment