added cloud code for sending payment links