This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://www.google.com/recaptcha/api.js" async defer></script> | |
<script> | |
var element = document.getElementById("payment_card_confirm"); | |
element.classList.add("g-recaptcha"); | |
element.dataset.sitekey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; | |
element.dataset.callback = "onSubmitCaptcha"; | |
function onSubmitCaptcha(token) { | |
document.getElementById("payment_form").submit(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function testProductUrl() { | |
var host = "www.domino.com.br"; | |
var username = "USER_API"; | |
var password = "SENHA_API" | |
//productUrl('34241', host, username, password); | |
productUrl('17345', host, username, password); | |
} | |
function productUrl(sku, host, username, password) { |
NewerOlder