Skip to content

Instantly share code, notes, and snippets.

@mmoravec
Created February 10, 2018 00:19
Show Gist options
  • Save mmoravec/4ad22853540bdf0159e8ce95216558c0 to your computer and use it in GitHub Desktop.
Save mmoravec/4ad22853540bdf0159e8ce95216558c0 to your computer and use it in GitHub Desktop.
var settings = {
"async": true,
"crossDomain": true,
"url": "https://netverify.com/api/netverify/v2/initiateNetverify",
"method": "POST",
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"User-Agent": "'ThorToken Whitelist/0.0.1'",
"mode": "'cors'",
"Authorization": "Basic NjdjOWE4NjItNWRiNy00ZDczLTk0MmQtMjU3ZmI5NWI4ZDEzOm5RRUlsUFVEcnVGRmpzS3BBSHFBNGlIejVMbXRXU1BR",
"Cache-Control": "no-cache",
"Postman-Token": "89f0e959-b6e3-c435-b023-3548ef865032"
},
"processData": false,
"data": "{\n \"merchantIdScanReference\": \"lksdjfkl3jczxczxczxc4324\",\n \"successUrl\": \"https://www.google.com\",\n \"errorUrl\": \"https://www.yahoo.com\"\n}"
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment