Blog

How CoinStack keeps accounts and payments safe

CoinStackUpdated 10 min read
Product

CoinStack keeps accounts and payments safe with a short list of documented controls. You sign in with an emailed code or Google, so there is no password. Team members get one of 4 roles, API keys come in 2 access levels, webhooks are signed with HMAC-SHA256, each checkout gets its own deposit address, and only the account owner can withdraw. No API key can move funds. Add two-factor authentication to the account and a security key or passkey to the inbox you sign in with.

What can a stolen credential do?

The fastest way to judge a security model is to assume each credential leaks and ask what the thief gets. The table follows the dashboard screens and the API reference.

CredentialWhat it allowsWhat it cannot doHow you cut it off
Owner's sign-inEverything, including withdrawing the wallet balanceNothing is out of reachSecure the inbox or Google account behind it
Any other team member's sign-inWhatever their role allows, as listed in the roles table belowWithdrawRemove the person on the Team page
Read and write API keyCreate, expire and resolve checkouts, manage webhooks, read and resend eventsWithdraw, change settings, manage the teamDelete it under Developers
Read only API keyList and get checkouts, payments and tokensEverything else returns 403 with Invalid permissionsDelete it under Developers
Webhook signing secretSend your server events that pass the signature checkReach your account or your walletRotate it under Developers

Only one row can move money, and it is the owner's sign-in.

Keep read-and-write keys on your server, and delete any key you doubt under Developers. A leaked read-only key moves nothing.

Sign-in uses an emailed code or Google, with no password

The Sign in screen asks for an email address and sends a 6-digit code to it, or offers Continue with Google. There is no password to choose, so there is none to reuse on another site and none to turn up in a leaked list. Protect that inbox or Google account with a security key or passkey.

Two-factor authentication is available. Open Settings in the dashboard and, in the Merchant account section, select Set up two-factor authentication. Once it is on, the same button reads Manage two-factor authentication. It belongs to the person signed in, so each owner and admin sets up their own.

The email account needs a second factor as well, because that is where the codes arrive. CISA, the US cybersecurity agency, says "any MFA is better than no MFA" (MFA is multi-factor authentication), and that "The only widely available phishing-resistant authentication is FIDO/WebAuthn authentication", meaning security keys and passkeys. Put one on the mailbox or Google account the owner signs in with. Do not make the owner a shared address such as billing@, because everyone who reads that inbox could then sign in as the owner and withdraw.

What can each role see and do?

People join a merchant account by invitation from the Team page. The invited person sees the invitation when they sign in with that email address and chooses whether to accept it, so invite the address they really sign in with.

ActionViewerMemberAdminOwner
See the Overview, checkouts, payments and team listYesYesYesYes
Create a checkout, expire one, mark an underpaid one as resolvedNoYesYesYes
Create and delete API keys, manage webhooks, resend eventsNoNoYesYes
Change payment methods, network cost, the underpayment allowance and the checkout layoutNoNoYesYes
Invite, change or remove peopleNoNoViewers and membersViewers, members and admins
See the wallet address and the Activity pageNoNoNoYes
WithdrawNoNoNoYes

The owner's Activity page is the audit trail. It lists each change with who made it (a person's email, or "An API key"), the IP address it came from and the time. Read it after any change you did not expect, and after anyone leaves the team.

API keys have two access levels and cannot withdraw

An API key starts with sk_, is shown once when you create it, and is sent as a Bearer token from your server. Only owners and admins can create or delete keys, and an account can hold up to 10.

Each key is either Read and write or Read only. A read-only key can list and get checkouts, payments and tokens. Every other endpoint, including all webhook and event endpoints, answers it with 403 and Invalid permissions. A reconciliation script needs nothing more than that. The plugins for WHMCS, WooCommerce, Blesta and PrestaShop need Read and write.

The docs ask for "a separate key for each system, so you can delete one without affecting the others". The limit of 10 leaves room for that: a host running WHMCS, a WooCommerce store, its own app and a read-only accounting script uses 4. Name each key after its system, since the Developers page lists keys by name, first characters, access level and creation date.

Deleting is the answer to any doubt, and the docs are specific about the effect: "A deleted key stops working straight away." Speed matters because leaked keys stay usable until someone revokes them.

A plugin's key is read-and-write, because the plugin creates checkouts and registers its own webhook. Anyone with admin access to your WHMCS or WordPress installation can read that key, so protect those admin accounts as you would the key itself.

How does your server know a webhook is real?

Anyone can send a request to a public URL, so every CoinStack event carries a signature header:

CoinStack-Signature: t=1796228678,v1=0e6494f309fc69039d6469d87098d20bf41703c430fb059d36e057beeb6ce6a4

t is the time the request was signed, in Unix seconds. v1 is the HMAC-SHA256 of t, a full stop and the raw request body, keyed with the webhook's signing secret. The secret starts with whsec_ and, like an API key, is shown once. Your server computes the same value, compares the two in constant time, and rejects the request if t is more than 5 minutes old. The webhooks guide has working code for Node.js, Python and PHP, and how to verify payment webhooks explains each step.

A valid signature proves who sent the event. The docs add 3 checks for what you do with it: expect duplicates and record each event_id, do not rely on the order of events, and match the checkout_id to an order you created before you deliver anything. The timestamp and the event ID work as a pair. A captured request replayed an hour later fails the 5-minute rule, and one replayed inside 5 minutes carries an event_id you have already handled.

A few rules narrow the surface further. A webhook URL must start with https:// and use a domain name, not an IP address, and an account can have up to 10 webhooks. A failed delivery is retried 7 more times, with waits that add up to 23 hours 36 minutes, so a short outage on your side does not lose the event. If a signing secret may have leaked, select Rotate secret. The old one stops working straight away, so update your server at once.

One deposit address per checkout, and no custody of funds

When a customer picks a token and network, the checkout gets a deposit address for that choice. The custom checkout guide states the rule: "Each quote has its own address, and that address belongs to one checkout." A transfer to that address is recorded against that checkout and no other, so there is no memo to forget and no shared address where two customers' payments can be confused. The checkout page names the one thing the address is for, in the form "Send only USDC on Base to this address." The background is in why your payment address changes on every order.

CoinStack is non-custodial, which means it does not hold your money at any point. The Terms say CoinStack "does not at any time receive, hold or control Digital Assets or other funds on behalf of any Merchant or Payer" and "has no ability to cancel, reverse, redirect or recover any Transaction". Each payment is converted to USDC and settled on the network you choose, to the wallet created with your merchant account or to another address you name. A payment that cannot be processed is returned to the sender.

You do not have to take the dashboard's word for a settlement. Every payment record carries recipient (your settlement address), deposit_tx_hash (the customer's transaction) and fill_tx_hash (the transaction that delivered the USDC). Both hashes open in a public block explorer, as described in how to verify a crypto payment.

Withdrawals are owner-only and never go through the API

The Withdraw button is on the Overview page and only the owner sees it. The owner picks a token, a network, a destination address and an amount, then gets a review screen with the network cost, the destination and the amount that will arrive. Nothing leaves before that screen is confirmed.

Withdrawals are not available through the API at all. A compromised server, a leaked key or a malicious plugin cannot empty the wallet, because the API has nothing to call.

Paste the destination from a record you keep outside email and chat, and send a small amount first to any new address. Address poisoning and other scams that target merchants shows how a lookalike address ends up in a clipboard.

Habits that keep your account secure

Five habits keep an account secure.

  1. Protect the inbox or Google account behind every sign-in with a security key or passkey, and turn on two-factor authentication in Settings.
  2. Give each person the lowest role that lets them work, and review the Team page when someone leaves.
  3. Keep API keys on the server, one per system, read-only where that is enough, and delete any key you doubt.
  4. Verify the signature and timestamp on every webhook, skip repeated event IDs, and match the checkout to your own order. For a large order, also read the checkout back from the API and deliver only if its status is completed.
  5. Check every withdrawal address against your own record, and tell [email protected] promptly if you see access you did not authorize. The Terms require that notice.

What to plan for

Two things deserve a plan. The first is concentration. Only the owner's sign-in can withdraw, so keep the balance behind it small. Payments can settle straight to an address with stronger controls, such as a hardware wallet or a multisig, so nothing builds up behind the owner's sign-in. Any balance already in the account wallet can be withdrawn there on a schedule. How to secure the wallet your business gets paid into covers sweep schedules and treasury wallets.

The second is your own code. CoinStack signs every event, but whether your handler checks the signature, skips a repeated event_id and fulfils only on completed is decided in your code. Use Send test on the webhook, select Resend on that event to confirm the handler skips it, and pay a real $1 checkout from your own wallet before launch.

Frequently asked questions

Can CoinStack freeze, reverse or take back a payment?

No. CoinStack is non-custodial: each payment is converted to USDC and settled to a wallet you control, and the Terms state that CoinStack has no ability to cancel, reverse, redirect or recover a transaction. That covers your own mistakes too, so a refund is a new transfer that you send from your own wallet.

Can a leaked CoinStack API key be used to withdraw funds?

No. Withdrawals are not available through the API, and only the account owner can make one, from the dashboard. A leaked read-and-write key can still create, expire and resolve checkouts and change webhooks, and a read-only key can read checkouts and payments. Delete a suspect key under Developers. It stops working straight away.

Does a CoinStack account have a password?

No. You sign in with a 6-digit code sent to your email address, or with Google. Protect that mailbox or Google account with a security key or passkey, and turn on two-factor authentication under Settings in the dashboard.

More posts