Prepaid balances: account credit top-ups with crypto
A prepaid balance, also called account credit, lets a customer pay once in crypto and spend the credit across many invoices or usage charges. It suits crypto because the customer sends one payment, and the billing system then draws each charge from the balance automatically. To build it, create one checkout per top-up, add the credit when the signed checkout.completed webhook arrives, and publish your rules for minimums, bonus credit and refunds of unused balance.
Why do hosts, proxy sellers and API businesses use account credit?
A prepaid balance lets the customer fund future charges in one payment. The companies below, which bill monthly or by usage, all work this way: crypto funds a balance, and the billing system they already run draws on it. These are the rules each one publishes as of December 2026.
| Company | How crypto is used | Published rules |
|---|---|---|
| Namecheap | "you should first deposit the money to your Namecheap account funds" | Minimum $1.00 for crypto and $5.00 for cards or PayPal, maximum $100,000.00 |
| Porkbun | "one-time crypto deposits which are added to the user's account as credit for future use like automatic renewals" | Deposits are one-time, and renewals draw on the credit |
| Bitwarden | "You need to purchase account credit to upgrade or renew your subscription with cryptocurrency" | Buy the credit before the renewal date |
| Proton | Bitcoin buys credits, and credits pay for the plan | Credit "never expires". No automatic renewal with Bitcoin |
| OpenRouter | "Credits are simply deposits" used for inference | A 5% fee on crypto purchases, 5.5% ($0.80 minimum) on card purchases. "cryptocurrency payments are never refundable" |
| Vast.ai | "Vast requires pre-payment of credits for GPU rentals" | "Autobilling (credit card only)". "We do not refund Vast credits bought with crypto" |
| DataImpulse | Proxy plans are topped up, with crypto going "through our integrated payment provider, CoinGate" | "The minimum top-up for plans is $50". "The 7-day refund policy does not apply to cryptocurrency payments" |
| Runpod | Credits fund GPU usage | Credits "are non-refundable and cannot be withdrawn once deposited" |
| NanoGPT | The balance "is held in US dollars" | From $0.10 in crypto or $1 by card. Crypto "gets a 3% bonus" |
Three things make the model work.
The balance renews for the customer. WHMCS, for example, applies available credit to new recurring invoices by default, as its credit balance documentation describes. The top-up is one payment and every renewal after it is drawn from the balance automatically, which is the core of how recurring billing works with crypto.
Fixed costs are paid once. A customer withdrawing from Kraken pays a flat 1 USDT to send USDT on TRON, according to Kraken's fee table. A customer who pays 12 separate $10 invoices that way spends 12 USDT on fees. One $120 top-up costs 1 USDT.
Exact amounts stop mattering. A top-up that arrives $1 short is a slightly smaller top-up.
How do you implement crypto top-ups?
The steps below use the CoinStack API. The shape is the same with any gateway that has hosted checkouts and signed webhooks.
- Let the customer choose an amount from a few presets or type their own. Validate the minimum and maximum on your server.
- Insert a top-up row in your database with the account, the amount and the status
pending. - Create a checkout for that amount with
POST /checkouts. Put your top-up ID inreferenceand the account ID inmetadata, and save thecheckout_idfrom the response on the row. - Send the customer to the checkout
url. They pick a token and network and pay from any wallet or exchange. - When the
checkout.completedwebhook arrives, verify its signature, find the row bycheckout_id, and add the credit in the same database statement that marks the row as credited.
This example uses Node.js with pg-promise. The request fields match the checkouts guide.
async function createTopup(account, amount) {
// amount is a string such as "50.00"
const topup = await db.one(
"INSERT INTO topups (account_id, amount, status) VALUES ($1, $2, 'pending') RETURNING id",
[account.id, amount],
);
const response = await fetch("https://coinstack.net/api/v1/checkouts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.COINSTACK_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
amount,
currency: "USD",
reference: `topup-${topup.id}`,
description: "Account balance top-up",
success_url: "https://example.com/billing?checkout={CHECKOUT_ID}",
cancel_url: "https://example.com/billing",
metadata: { account_id: String(account.id), topup_id: String(topup.id) },
}),
});
const body = await response.json();
if (!body.success) {
throw new Error(body.response);
}
await db.none("UPDATE topups SET checkout_id = $1 WHERE id = $2", [
body.response.checkout.checkout_id,
topup.id,
]);
return body.response.checkout.url;
}The return link is a link on the checkout page, not a redirect, and the customer may close the page without using it. The credit has to come from the webhook. After the signature check described in the webhooks guide, one statement does the work:
if (event.kind === "checkout.completed") {
await db.none(
`WITH credited AS (
UPDATE topups
SET status = 'credited'
WHERE checkout_id = $1 AND status = 'pending'
RETURNING account_id, amount
)
UPDATE accounts
SET balance = accounts.balance + credited.amount
FROM credited
WHERE accounts.id = credited.account_id`,
[event.data.checkout.checkout_id],
);
}Webhooks can be delivered more than once. A second delivery finds no pending row, so it adds nothing. The amount comes from your own row, so the request cannot choose how much to credit. Reliable payment webhooks covers retries and ordering, and building top-ups into a proxy dashboard walks through a full interface.
Which amount do you credit: charged or received?
Credit the amount you charged. When a customer pays a $25 checkout, the merchant receives 24.80 USDC after CoinStack's 0.8% fee of $0.20. The customer paid $25 and should see $25.00 of credit. The $0.20 is your cost of taking the payment, as a card fee would be.
If you want the customer to carry that cost, say so before they pay and show both numbers. OpenRouter does this with its 5% fee on crypto purchases.
Balances do not have to be in dollars. A checkout can be created in any of 146 currencies, so a euro balance is topped up with a euro checkout and credited in euros. You still receive USDC, which leaves the exchange rate between the dollar and your balance currency with you. Pricing in local currency and settling in USDC explains that exposure.
What minimum top-up should you set?
Set the minimum where the fixed costs on both sides stop being a large share of the payment. The percentage fee scales down with the amount. The customer's exchange withdrawal fee does not.
| Top-up | CoinStack fee at 0.8% | A 1 USDT exchange fee is |
|---|---|---|
| $5 | $0.04 | 20% of the top-up |
| $10 | $0.08 | 10% |
| $25 | $0.20 | 4% |
| $50 | $0.40 | 2% |
| $100 | $0.80 | 1% |
There is also a floor set by the tokens themselves. The smallest CoinStack checkout is worth $1, and each token on each network has its own minimum. A checkout below a token's minimum does not offer that token. GET /tokens returns the current minimum for every token, so check it before you pick a number. Exchanges have floors too: Kraken's minimum USDT withdrawal on TRON is 6 USDT.
Published minimums vary a lot: $0.10 at NanoGPT, $1.00 at Namecheap, $50 at DataImpulse. A minimum of $10 with presets of $25, $50 and $100 keeps a 1 USDT exchange fee at 10% or less and nudges people toward amounts where it is 1% to 4%. Set a maximum too, as Namecheap does at $100,000.00, because a cap limits how much you can owe one account.
Should you give bonus credit for crypto top-ups?
A bonus is affordable when crypto costs you less than the method it replaces. Stripe's US pricing is 2.9% plus 30 cents for a domestic card, with 1.5% more for international cards. On a $50 top-up:
| Method | Cost to you on $50 |
|---|---|
| Domestic card at 2.9% + 30 cents | $1.75 |
| International card at 4.4% + 30 cents | $2.50 |
| CoinStack at 0.8% | $0.40 |
The gap against a domestic card is $1.35, or 2.7% of the top-up. NanoGPT's 3% crypto bonus sits close to that figure. Mullvad, which sells prepaid time instead of a balance, goes further and discounts crypto by 10%, citing "lower fees and less administration".
Two cautions. A customer who would have paid in crypto anyway gets the bonus without saving you anything, so tying it to size (for example 2% on top-ups of $100 or more) buys you fewer, larger payments instead. And store bonus credit separately from paid credit, because refunds and your books both need the paid figure. The wider question is covered in whether to offer a crypto discount.
What happens when a top-up arrives short, over or late?
A payment short by no more than your underpayment allowance (0.5% by default in CoinStack) completes the checkout, and you credit the full amount. A larger shortfall makes the checkout partial, and the customer can send the rest to the same address. If the checkout expires still short, it becomes expired with underpaid set to true, and the USDC from the part that was paid is already at your settlement address.
For a top-up, you can accept that part instead of refunding it. The payments guide gives each completed payment a share, the fraction of the checkout it covered, where 1 is the full amount. Add up the shares of the checkout's completed payments and credit that fraction of the top-up: a customer who owed $50 and sent 49 USDT because the exchange took its fee has shares adding to about 0.98, so you credit $49.00. Then mark the checkout as resolved in the dashboard or with POST /checkouts/{checkout_id}/resolve. resolved is final, and the same pending guard on the row stops the checkout.resolved event from crediting it a second time. The general case is in underpaid crypto payments.
An overpayment of more than 2% completes the checkout with overpaid set to true, and all of it settles to you. Compare what was received with what you expected and add the difference to the balance. A payment after expiry that covers the amount completes the checkout with late set to true. A balance cannot go out of stock, so credit it as normal.
How should refunds of unused balance work?
Several of the companies in the table refuse them for crypto. That is a policy choice, and it is not available everywhere. In the EU, Directive 2011/83/EU gives a consumer 14 days to withdraw from a distance contract without giving a reason (Article 9) and requires reimbursement by the same means of payment unless the consumer agrees otherwise (Article 13). Neither article makes an exception for crypto, and the UK's Consumer Contracts Regulations 2013 say much the same. Both sets of rules contain exceptions, so confirm with your lawyer which of your sales they cover.
Decide these points and publish them next to the top-up button:
- Whether unused paid credit is refundable, and for how long after the top-up.
- That bonus credit is never refunded.
- Whether credit expires. Proton says never. OpenRouter reserves "the right to expire unused credits after one year of purchase".
- How the refund is sent: in a stablecoin, at the dollar value of the balance, to an address and network the customer confirms in writing.
The last point matters for 2 reasons. A balance held in dollars makes the refund amount unambiguous. And the address a payment came from can be an exchange's shared wallet, so sending a refund back to it can lose the money. See paying straight from an exchange.
With CoinStack, you send refunds from your own wallet. If your top-ups settle to the wallet created for your account, you make each one as a withdrawal in the dashboard; if they settle to another address you named, you send it from there. The steps are in how to refund a crypto payment.
A balance that can be funded and then refunded to a different address can be misused to move money through your business. WHMCS addresses a related risk in its own product: "clients cannot add funds until they have at least one active approved order", a rule it says helps prevent fraud. A maximum balance and a rule that refunds go only to the account holder serve the same purpose.
When is a prepaid balance the wrong model?
If your customers pay one annual invoice, a balance adds a step and a liability for nothing.
A balance also creates money you owe. Unspent credit is usually recorded as a liability until the customer uses it, which your accountant should set up before launch. Bookkeeping for crypto payments covers the entries.
A balance can also run out. Runpod's documentation says that at $0 it "automatically stops all of your running Pods". If your service stops at zero, send low-balance emails early and say plainly what happens when the credit runs out.
Frequently asked questions
Can a prepaid balance renew a subscription automatically if the customer paid in crypto?
Yes. The balance covers each renewal: your billing system draws on the credit automatically. WHMCS applies credit to new recurring invoices by default, and Porkbun uses crypto deposits as credit for automatic renewals. The customer only has to keep the balance above the next charge.
Should I credit the top-up before the payment is confirmed?
No. Add the credit when the checkout is completed, which in CoinStack means the payment has been converted and the USDC has reached your wallet. A confirming status means a payment was detected and is still being processed. Show "payment detected" at that stage, and release spendable credit only on the completed webhook.
Are crypto top-ups refundable?
It depends on your policy and on consumer law where you sell. OpenRouter, Vast.ai and Runpod publish no-refund rules for crypto credit. In the EU, consumers have a 14-day right to withdraw from distance contracts whatever they paid with, and EU and UK rules send the reimbursement back by the same means unless the customer agrees otherwise. Publish your rule before payment.