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
<storeList> | |
<stores> | |
<id>STORE ID</id> | |
<channelId>PARTNER ID</channelId> | |
<name>Store name</name> | |
<nick>Store owner's nickname</nick> | |
<email>Store owner's email</email> | |
<url>Store URL</url> | |
<suspended>'Suspended' status, either 'true' or 'false'</suspended> | |
<traffic>Traffic consumed since start of the month, bytes</traffic> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<be-owner-result> | |
<redirect-url>URL_TO_REDIRECT_TO</redirect-url> | |
</be-owner-result> |
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
window.Ecwid.OnAPILoaded.add(function() { | |
window.Ecwid.setSignInUrls({ | |
signInUrl: 'http://my.site.com/signin', | |
signOutUrl: 'http://my.site.com/signout' // signOutUrl is optional | |
}); | |
}); |
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
window.Ecwid.OnAPILoaded.add(function() { | |
window.Ecwid.setSignInProvider({ | |
addSignInLinkToPB: function() { return true; }, | |
signIn: function () { alert('sign in'); | |
window.Ecwid.setSsoProfile('<?php echo "$message $hmac $timestamp"; ?>'); | |
}, | |
canSignOut: function() { return true; }, | |
signOut: function () { alert('sign out') } | |
}); | |
}); |
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="//app.ecwid.com/script.js?1003" type="text/javascript" charset="UTF-8"></script> | |
<script> | |
Ecwid.OnAPILoaded.add(function() { | |
// Ecwid API is available, do something | |
alert(Ecwid.formatCurrency(123.45)); | |
}); | |
</script> |
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="//app.ecwid.com/script.js?1003" type="text/javascript" charset="UTF-8"></script> | |
<script> | |
function dump(arr,level) { | |
var dumped_text = ""; | |
if (!level) level = 0; | |
// The padding given at the beginning of the line. | |
var level_padding = ""; | |
for (var j=0;j<level+1;j++) level_padding += " "; | |
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="//app.ecwid.com/script.js?1003" type="text/javascript" charset="UTF-8"></script> | |
<script> | |
Ecwid.OnPageLoad.add(function(page) { | |
alert("My page load handler: "+page.type); | |
}); | |
</script> |
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://checkout.ecwid.com/controlpanel-api.js" type="text/javascript" charset="UTF-8"></script> | |
<script> | |
EcwidCheckout.OnChanged.add(function() { | |
alert("My change event handler"); | |
}); | |
</script> |
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
<?php | |
define('CHECKOUT_WIDGET_OWNERID', 'TEST-123'); | |
define('CHECKOUT_WIDGET_KEY', 'secret'); | |
$timestamp = time(); | |
$signature = hash_hmac( "sha1", CHECKOUT_WIDGET_OWNERID." ".$timestamp, CHECKOUT_WIDGET_KEY); | |
?> | |
<script src="https://checkout.ecwid.com/controlpanel-api.js" type="text/javascript" charset="UTF-8"></script> | |
<script> |
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
window.ControlPanelJSLoaded = function() { EcwidCheckout.init({/* something */}); }; | |
var script = document.createElement('SCRIPT'); | |
script.src = "https://checkout.ecwid.com/controlpanel-api.js"; | |
script.charset = "utf-8"; | |
script.setAttribute("type", "text/javascript"); | |
script.onerror = function() { alert('Could not load script'); }; | |
document.body.appendChild(script); |
OlderNewer