Skip to content

Commit

Permalink
WhatsApp share with custom message
Browse files Browse the repository at this point in the history
  • Loading branch information
Pt. Prashant tripathi authored Oct 17, 2020
1 parent 1f74ae0 commit 35b9e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkpe.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h4 style="color: #DAE0E2;">Create UPI Payment Request Link </h4>
const q = window.location.search;
const url= 'https://ptprashanttripathi.github.io/linkpe'+q+'&cu=INR';
document.getElementById("linkpeURL").innerHTML =url;
document.getElementById("whatsapp").href="https://wa.me/?text="+encodeURIComponent(url);
document.getElementById("whatsapp").href="https://wa.me/?text=Hi%2C%20You%20can%20pay%20me%20by%20url%20this%0A%20"+encodeURIComponent(url);
document.getElementById("linkpediv").style.display="block";
document.getElementById("linkpeform").style.display="none";
}
Expand Down

0 comments on commit 35b9e5d

Please sign in to comment.