I have an apps script that lets the user upgrade their account. Once they are done paying, I close the modal and send data to the .gs
file. How do I pass data from the .gs
file (or from the modal dialog) to tell the sidebar that the user upgraded their account? I have in my .gs
file:
function upgradeUser(data){
// do stuff then pass it on to my sidebar....
return response.getResponseCode();
}
I am aware I can pass data to the sidebar in 2 ways:
- When the template is created.
- The sidebar sends a request to the
.gs
file.
Is there another way?