Skip to content
HisarPay
  • Guides
  • Published:
  • Reading time: 5 min read
  • Türkçe oku

Go-live checklist: before your first real payment

The places to look before the first real payment are well known. This list puts the items for whoever writes the code and for whoever owns the business on one page. All of it fits into an afternoon.

On this page
  1. Two tracks: trying and approval
  2. Keys
  3. Webhooks: signature, repeats, mode
  4. Scenarios to try in test mode
  5. Account and money
  6. How the payment page looks
  7. Notifications, and who to ask
  8. Launch day and the first week
  9. Frequently asked questions

Two tracks: trying and approval

Test mode works as soon as you have an account, while accepting real money waits until our team has reviewed your application by hand. Neither has to wait for the other. Build and test everything during the review and swap the key on the day of approval. The “Get set up” list on the dashboard overview follows the basic steps.

Keys

  • One per integration: give each its own hp_live_ key. If one leaks, you revoke only that one.
  • Narrow scopes: a shop plugin needs invoices and read. Leave out withdrawals unless you use them.
  • IP allowlist: restrict the key to your servers, with up to 20 addresses or CIDR ranges.
  • Storage: a key is shown once. Keep it in an environment variable or a secrets manager, never in a repository, browser code or a mobile app.
  • End date: if you set one, put it in your calendar. We e-mail you 14 and 3 days before.

Creating a live key asks for your password and second step, and for an authenticator app or a passkey on the account. Doing the security section below first saves a detour.

Webhooks: signature, repeats, mode

Add your endpoint under Developers → Webhooks in the dashboard and check four behaviours:

  1. Signature: it is verified over the raw body, and a request with a bad one is refused.
  2. Repeats: when the same event arrives twice, the order is processed once.
  3. Mode: endpoints receive test and live events. Production never applies livemode: false to an order.
  4. Time: a 2xx comes back within 10 seconds and heavy work goes to a queue. An event that gets no answer is tried ten times in all, over about two days.
A plain webhook endpoint for productionTypeScript
app.post('/webhooks/hisarpay', express.raw({ type: 'application/json' }), async (req, res) => {
  let event;
  try {
    event = HisarPay.webhooks.constructEvent(req.body, req.headers['x-hisarpay-signature'], secret);
  } catch {
    return res.sendStatus(400); // signature does not match
  }
  if (!event.livemode) return res.sendStatus(200); // production skips test events

  await queue.addOnce(event.id, event); // the same id is never added twice
  res.sendStatus(200);
});

Details are in webhook signatures. Send an order_id with each invoice too: a second request with the same one returns the existing invoice instead of opening another.

Scenarios to try in test mode

ScenarioHow to try itExpect
Full paymentpaidThe order completes once
Short, then completepartial, then paidThe rest is announced, then it completes
OverpaymentoverpaidThe order completes, the difference is recorded
Never paidexpiredStock is released
Late paymentexpired, then paidlate shows and your rule applies
Repeated eventResend from the dashboardNothing happens twice

Simulate through the API, on the invoice page in the dashboard or with the buttons below a test payment page. The steps are in our guide to test mode, the field names in the documentation.

Account and money

  • Authenticator app: withdrawals require it. Download the 10 recovery codes it comes with and keep them away from your phone. Each works once.
  • Saved address: save the TRON address you will withdraw to and compare every character. It can become trusted after at least 7 days and 3 completed withdrawals; if you want automatic withdrawals, start that clock now.
  • Withdrawal restriction: turn on withdrawing to saved addresses only. Addresses added later wait 24 hours, and that includes the ones you refund to.
  • E-mail: protect the mailbox you sign in with by two-step verification as well. Codes go there.

All of this is covered in account security.

How the payment page looks

  • Store name: the one customers know, not the legal entity.
  • Logo: SVG, up to 500 KB. A separate one for dark mode is optional.
  • Colour: used for the buttons on the payment page.
  • Contact for payers: an e-mail address or a page, shown when an invoice has expired or was overpaid. Left empty, the customer does not know whom to write to.
  • Lifetime, tolerance, commission: choose the default invoice lifetime, the underpayment tolerance and who pays the fee on purpose.

Notifications, and who to ask

Turn on payment and withdrawal e-mails and link the Telegram bot if you want it. Decide today who watches payment alerts and who sends refunds, and keep the refund steps at hand. When you are stuck, open a support ticket from the dashboard. Pick the invoice it concerns and, for API problems, add the X-Request-Id of the response. We aim to answer within 24 hours. If you suspect an outage, look at the status page first.

Launch day and the first week

  1. Put the live key on the server, restart, and search your configuration for any test key left behind.
  2. Send a test.ping to the endpoint with Send test and see a 2xx in the delivery history.
  3. Switch the payment option on at a quiet hour first.
  4. Every morning of the first week, look at three things: failed webhook deliveries, partly paid invoices and late payments.

Know how to switch it off as well. Disabling the method in the plugin or pausing a payment link takes seconds; open invoices are not affected, and payments that arrive are still credited.

One small, real payment

Make the first live payment yourself. Open a $15 invoice and send 16 USDT; 14.94 USDT is credited. Watch the order move and the e-mail arrive, then withdraw 13.94 USDT to your own wallet, with the remaining 1 USDT covering the fee. Do not test with $10: 9.96 USDT would be credited, below the $10 minimum for a withdrawal.

Test as a customerDo it on a phone, starting from the cart. That is the path your customers take, and gaps you do not see on an invoice opened through the API, such as a wrong return address, show up there first.

Frequently asked questions

Can I start integrating while I wait for approval?
Yes. Test mode works from the start, and a test key creates invoices whose payments you simulate. Live keys can be created after approval.
Does my test data move to live?
No. Test and live data are kept apart. Webhook endpoints and store settings are shared by both modes.
What changes in the code?
Usually only the API key. Make sure production also has the livemode check that skips test events.
  • #Going live
  • #Test mode
  • #Webhooks
  • #Security

Try crypto payments in test mode

No setup or monthly fees. Experiment as much as you like in test mode and go live when you are ready.

More guides that go well with this one.