This package is designed to be installable on any domain that can serve static files and run PHP. The front end works anywhere; the full verification + webhook flow requires PHP for /sales/api/verify-sale.php.
Upload the contents of the sales folder directly into your website's /sales/ directory.
/public_html/sales/ index.html widget.js widget.html docs.html api/ storage/ README.md
That should produce these public URLs:
/sales/api/config.example.php to /sales/api/config.php.downstream_webhook_url and downstream_webhook_secret./sales/storage/ is writable by PHP.On many cPanel hosts, that means 755 for folders and ensuring PHP can write to the storage directory. If needed, use 775 on /sales/storage/.
The builder now includes a Widget install base URL field. Set it to your own domain path, for example:
https://yourdomain.com/sales
Generated script and iframe embeds will then point to your own domain instead of atomregistry.com.
<div id="atom-sales-widget"></div>
<script src="https://yourdomain.com/sales/widget.js"></script>
<script>
window.AtomSalesWidget.mount('#atom-sales-widget', {
title: 'Pay with ATOM',
walletAddress: 'cosmos1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
amountAtom: '5',
itemName: 'Premium Access',
memo: 'Order: Premium Access',
successUrl: 'https://yourdomain.com/thank-you',
verifyEndpoint: 'https://yourdomain.com/sales/api/verify-sale.php',
enableKeplr: true,
allowManualFallback: true,
addressVisibility: 'checkout',
showMintscan: true
});
</script>
After a successful in-widget transaction, the widget can POST this payload to your verification endpoint:
{
"txhash": "...",
"sender_address": "cosmos1...",
"recipient_address": "cosmos1...",
"amount_atom": "5",
"amount_uatom": "5000000",
"memo": "Order: Premium Access",
"item_name": "Premium Access",
"chain_id": "cosmoshub-4"
}
uatom/sales/ on your installed domain./sales/api/verify-sale.php./sales/storage/verify-sale.log for verification activity.Yes, this can be installed on any domain as long as that domain/server can:
If you deploy on a static-only host with no PHP, the widget UI can still work, but the verification endpoint and webhook automation will not.
checkout or hidden if you do not want the wallet displayed publicly.