Developers
A payment page with your brand on it.
ACHQ hosts a bank payment page in your logo, colors and font. Email your payers a link with the amount already filled in. They enter their bank details, agree to the debit, and you get paid by ACH. No code needed.
https://achq.com/pay/your-business
?amount=250.00
&exp=1798761600
&name=Jane+Doe
&ref=INV-1001
&sig=e2e8a9e79962c9689739be6443262e14004dd94a7448ea1634b9f47fafd1b76dWhat it is
The hosted payment page is a web page at achq.com/pay/your-business where your customers pay you from their bank account. ACHQ builds it for you, hosts it, and processes every payment. You never handle bank numbers.
Good fits:
- Lenders and servicers collecting monthly loan payments
- Businesses that send invoices and want to stop chasing checks and wires
- Anyone who wants a payment link in an email or a Pay button on their website
Your branding
The page leads with your brand. ACHQ takes your logo, colors and font from your website and sets up the page to match. A small "Payments processed by ACHQ" line sits at the bottom.
- Logo in the header, on your own header color
- Your main color on buttons, focus rings and checkboxes
- Your font when it is free to use on the web (for example Google Fonts). Otherwise a clean system font
- Your legal name in the payment authorization, so payers know who is debiting them
- No ACHQ menus or marketing on the page, and it is hidden from search engines
The page works on phones first. Most payers open the link from an email on their phone.
How a payment works
- Your payer opens your link. Anything you put in the link is filled in.
- They enter their name, email, address and bank routing and account numbers. The routing number is checked as they type.
- They read your payment authorization, check the box and click Authorize Payment. The authorization text is approved by ACHQ compliance for your account type.
- ACHQ turns the bank details into a secure token, optionally verifies the account, and creates the ACH debit. The payer sees a confirmation number right away.
- The payer gets a copy of the authorization by email. You get a copy too. Keep it for at least 2 years after the authorization ends or is revoked. Nacha rules require it.
- Funds settle to your account on your normal ACHQ schedule.
Pre-filled links
A pre-filled link fills in the form for your payer and locks what it fills in. The payer cannot change the amount, the name, the reference or anything else the link carries. They only add their bank details and agree to the debit. Every pre-filled link is signed, and the page uses nothing from a link that is not.
The easy way: ACHQ creates the links for you. Send us the payer, amount and reference and we send back a link that is ready to email. The rest of this section is for developers who want to sign links in their own system.
These fields can go in a link. Leave out what you do not know. The payer fills in the rest.
| Name | What it does | Example |
|---|---|---|
| amount | Payment amount in dollars | 250.00 |
| name | Payer full name | Jane Doe |
| company | Payer business name (business debits) | Main St LLC |
| Payer email | jane@example.com | |
| ref | Invoice, loan or account reference. Up to 50 characters. | INV-1001 |
| memo | Short note shown on the page. Up to 100 characters. | November |
| return_url | Where the Done button goes. Must be an https address on a domain you registered with ACHQ. | https://example.com/thanks |
| exp | Expiry as a Unix timestamp in seconds. Required on signed links. | 1798761600 |
| sig | The HMAC-SHA256 signature, 64 lowercase hex characters. | see below |
Bank details can never go in a link. A link that carries a routing or account number is refused. Links get forwarded, saved in browser history and logged by email systems.
Unsigned links fill in nothing. Anyone can edit a web address, so the page ignores any field that is not signed and opens the blank form.
Changed or expired links are refused. If anyone edits a signed link, or it is past its expiry, the page says the link is no longer valid and tells the payer to contact you for a new one. No money moves.
Signing a link
ACHQ gives you a signing secret for your page. Keep it on your server. Never put it in a web page, an email or a spreadsheet you share. To sign a link:
- Pick the fields you want to send and add
exp, the time the link stops working (Unix seconds). 30 days is a good default. - Sort the field names alphabetically. Write each one as
name=value, with the value URL encoded the same way as JavaScriptencodeURIComponent. Join them with&. - Build the message from three lines joined by a newline:
achq-pay-v1, your page name, and the joined fields. - Sign the message with HMAC-SHA256 using your secret. Add the result as
sig, in lowercase hex.
Your page name is part of the message, so a link signed for one page never works on another.
Worked example
Page name your-business, secret example_secret_do_not_use_0000000 (a placeholder, do not use it), amount $250.00 for Jane Doe on invoice INV-1001, expiring 2027-01-01.
1. The message to sign (three lines):
achq-pay-v1
your-business
amount=250.00&exp=1798761600&name=Jane%20Doe&ref=INV-10012. HMAC-SHA256 of that message with the secret, in hex:
e2e8a9e79962c9689739be6443262e14004dd94a7448ea1634b9f47fafd1b76d3. The finished link:
https://achq.com/pay/your-business?amount=250.00&exp=1798761600&name=Jane+Doe&ref=INV-1001&sig=e2e8a9e79962c9689739be6443262e14004dd94a7448ea1634b9f47fafd1b76dIn the address, a space can show as + or %20. Both work. The signature is always computed on encodeURIComponent of the original value, as in step 1.
Code samples
Node.js:
import { createHmac } from 'node:crypto'
const SLUG = 'your-business' // your page, from ACHQ
const SECRET = process.env.ACHQ_LINK_SECRET // from ACHQ, server side only
export function payLink(fields) {
// fields: { amount, name, email, company, ref, memo, return_url }
const params = { ...fields, exp: String(Math.floor(Date.now() / 1000) + 30 * 86400) }
const body = Object.keys(params)
.filter((k) => params[k] !== undefined && params[k] !== '')
.sort()
.map((k) => k + '=' + encodeURIComponent(params[k]))
.join('&')
const sig = createHmac('sha256', SECRET)
.update('achq-pay-v1\n' + SLUG + '\n' + body)
.digest('hex')
const qs = new URLSearchParams({ ...params, sig })
return 'https://achq.com/pay/' + SLUG + '?' + qs.toString()
}Python:
import hmac, hashlib, os, time
from urllib.parse import quote, urlencode
SLUG = "your-business"
SECRET = os.environ["ACHQ_LINK_SECRET"].encode()
SAFE = "-_.!~*'()"
def pay_link(**fields):
params = {k: str(v) for k, v in fields.items() if v not in (None, "")}
params["exp"] = str(int(time.time()) + 30 * 86400)
# quote() with SAFE matches JavaScript encodeURIComponent
body = "&".join(k + "=" + quote(params[k], safe=SAFE) for k in sorted(params))
msg = f"achq-pay-v1\n{SLUG}\n{body}".encode()
params["sig"] = hmac.new(SECRET, msg, hashlib.sha256).hexdigest()
return f"https://achq.com/pay/{SLUG}?{urlencode(params)}"Not a developer? You do not need any of this. ACHQ creates the links for you.
Security
- Bank numbers go straight from the payer to ACHQ over HTTPS and are turned into a token. The page does not store them.
- The server checks every signature again when the payer submits. Every signed field always wins over anything sent from the browser.
- Each submit carries a one-time key, so a double click never creates two payments.
- Bot checks and rate limits stop automated abuse.
- Every authorization records the exact wording shown, the date and time, the payer IP address, and the account's last 4 digits.
- If your secret leaks, tell ACHQ. We issue a new one and every old link stops working.
Test mode
Every new page starts in test mode. It shows a test banner, uses the ACHQ sandbox, and no money moves. Use routing number 123123123 with any account number. These test account numbers show the other outcomes:
987654321fails account verification, so you can see the decline screen- Any other account number is approved
Real bank details are refused in test mode. The page goes live only after ACHQ approves it.
Request a page
Email us and we set it up. We need:
- Your website address (we take the logo, colors and font from it)
- Whether your payers are businesses or consumers
- Whether amounts are fixed per payer or entered by the payer
- The email or phone payers use to cancel, and whether you charge a returned payment fee
- Where payers should land after paying
You need an approved ACHQ merchant account. We set up a test page first so you can try it before it goes live.

