DashCommerce crypto payment gateway for EmDash
Coldtill for DashCommerce adds crypto payments to shops built on EmDash with DashCommerce. Customers pay with USDT, USDC, Bitcoin, Ethereum, Solana, Tron or 200+ other coins, and the money goes to your own wallets.
@coldtill/dashcommerce on npm · Source on GitHub · MIT licence
Features
- DashCommerce's own checkout. Coldtill is a payment provider next to Stripe, so carts, stock holds, order numbers, emails and the admin work as they already do. You can switch back to Stripe at any time.
- Paid before the order exists. DashCommerce creates the order once the payment fills, after re-checking it with your Coldtill server.
- Signed webhooks with HMAC-SHA256, a timestamp and a five-minute replay window.
- Encrypted settings. The API key and webhook secret are stored as EmDash secrets.
Requirements
- EmDash 1.1 to 1.3 with
@dashcommerce/core0.3, including the EmDash patch DashCommerce ships - Store currency: USD
- A Coldtill server reachable over https. The Free edition installs with one command.
Set it up
Add the package to your EmDash site:
npm install @coldtill/dashcommerceIn
astro.config.mjs, replacedashcommerce()withdashcommerceWithColdtill():import { dashcommerceWithColdtill } from "@coldtill/dashcommerce"; emdash({ plugins: [dashcommerceWithColdtill({ url: "https://pay.example.com" })], });EmDash fixes the hosts a plugin may call when the site is built, so your Coldtill URL goes here.
In Coldtill, create a project API key under API keys.
In Coldtill → Webhooks, set the URL to
https://<your shop>/_emdash/api/plugins/dashcommerce/checkout/webhook-coldtilland copy the signing secret.In EmDash, paste the API key and webhook secret into the DashCommerce plugin settings.
In DashCommerce → Settings, set the payment provider to
coldtill, and use the hosted checkout mode.
What happens to an order
| Coldtill payment | DashCommerce |
|---|---|
| Filled or overpaid | Order created as Processing, paid |
| Partially paid | No order yet; waits for the rest |
| Cancelled or replaced | Stock hold released; no order |
Refunds go from your wallet, since the money is already there; mark the order refunded in DashCommerce afterwards. DashCommerce holds stock for 15 minutes, so for slow payments consider a shorter payment expiry in Coldtill.