Changing function of deposit button

 
I'm trying to make my deposit button run a script or use plugins/tools to call an API and return a QR code BMP file for the user to scan and make a deposit, instead of just opening a link. However, I found out that it can only be enabled on the admin server, and that button can only input a link. Are there any alternative ways to do this? My only option here is to set the link to have a QR code, but that solution is not very dynamic or user-friendly.
Files: