Payments setup — and the one step that silently loses money
This guide is about the checkout of the Nimbopanel store itself, the one that sells licenses. To take payments from your own hosting customers, see Marketing website — sell hosting from your own domain.
Payment credentials are server-side only: you enter them on the admin page, where they are stored
encrypted on the server, or you set them in .env on your machine as a fallback. They are never kept
as plain text in the database, and a saved value is never shown again. That is deliberate. What follows
is where each value goes — and the one step that is easy to miss and expensive to miss.
The step that costs money if you skip it
Many payment methods are asynchronous. A buyer picks a virtual account, an e-wallet, or pays at a retail outlet, and then closes the tab. They may finish paying an hour later, from their banking app, on a different device. Nothing about that ever returns to your website.
So the purchase is completed by the provider calling your server — a webhook — and by nothing else.
If that call never arrives:
- the buyer's money reaches you,
- their licence is never issued,
- the order sits at "pending",
- and nothing anywhere says why.
This is not a rare edge case. On such methods it is the normal path.
Where each provider gets its URL
| Provider | Webhook URL | Who sets it |
|---|---|---|
| Xendit | https://yourdomain/webhooks/xendit |
you, by hand, once |
| PayPal | (none) | not needed — it completes on the return |
PayPal completes when the buyer comes back, so it needs no webhook at all. Xendit is the one that needs you — see below.
Xendit is the one that needs you. Its "invoice paid" callback is account-wide, not per-invoice, so it is set once in Xendit's own dashboard.
Xendit, click by click
- Sign in at dashboard.xendit.co.
- Settings → Developers → Webhooks.
- Under Invoices paid, paste the URL your admin page shows for Xendit
(
https://yourdomain/webhooks/xendit). - Save, and copy the webhook verification token shown on the same page.
- Enter that token as the Callback token under Admin → Settings → Payment gateway credentials,
next to the Xendit Secret Key, and save. If you keep your credentials in
.envinstead, put it there asXENDIT_CALLBACK_TOKEN, alongsideXENDIT_SECRET_KEY. - Values saved on the admin page apply as soon as you save. Values in
.envneed a restart of the site before they are read.
Both halves are required. The URL without the token means deliveries arrive and are refused; the token without the URL means nothing arrives at all.
Proving it actually works
Do not trust "I pasted it". Open Admin → Settings → Payment webhooks. It reports what has genuinely reached your server:
| What it says | What it means | What to do |
|---|---|---|
| Never received | Nothing has ever arrived from this provider | The URL is missing or wrong in the provider's dashboard |
| Not matching | Deliveries arrive but name no order of yours | The URL points at you from a different provider account than the store uses |
| Working | At least one delivery matched a real order | Nothing — it is wired up |
The counters only move for calls that carry the provider's own credentials, so a random probe from the internet can never make an unconfigured gateway look healthy.
Test it end to end before you take real money. Xendit's dashboard has a "test webhook" button on the
same page; use it, then reload the admin card. If it still says Never received, the URL is wrong —
check for a typo, a missing https://, or a trailing slash.
The credentials themselves
There are two ways to set them. Both keep the secret out of sight — neither ever shows a saved value.
From the admin page (recommended)
Admin → Settings → Payment gateway credentials. Enter the PayPal Client ID + Secret (and the
sandbox/live switch) and the Xendit Secret Key + Callback token. They are stored encrypted on the
server; the fields are write-only, so once saved they are never displayed again — the page shows only
Configured / Not set (a field counts as Configured whether its value is stored here or comes from
.env). Leave a field blank to keep it unchanged. The Remove stored PayPal credentials and Remove stored
Xendit credentials boxes delete that gateway's stored values, and the store goes back to the values in
.env for it, if there are any.
Recommended one-time setup: generate a dedicated key that encrypts them, kept separate from the app
key. A database dump and an .env leak are then each useless on their own. Without a dedicated key the
store derives the encryption key from APP_KEY, which works, but changing APP_KEY later would make the
stored credentials unreadable. If there is no key at all, the page says No encryption key and cannot
store anything until you generate one:
php artisan store:secrets-key # writes STORE_SECRETS_KEY to .env — then BACK IT UP off the server
php artisan config:clear
Losing STORE_SECRETS_KEY makes stored credentials unreadable (you would just re-enter them). Keep
APP_DEBUG=false in production: with debug on, the site answers 503 and the store will not decrypt stored
credentials, because a debug page can print them.
Or from .env (alternative)
The .env values are the fallback: set them there if you prefer, then restart. A value saved on the admin
page wins over the same value in .env. The store uses .env only for a field with nothing stored, or whose
stored value cannot be read.
# Xendit
XENDIT_SECRET_KEY=...
XENDIT_CALLBACK_TOKEN=... # from Settings → Developers → Webhooks
# PayPal
PAYPAL_CLIENT_ID=...
PAYPAL_SECRET=...
PAYPAL_ENV=sandbox # or: live
A gateway with no credentials, on the admin page or in .env, is simply left out of checkout. With
credentials it is offered while its Enabled switch under Admin → Settings is on, which it is by default.
What has and has not been proven
The store's PayPal credentials can be entered and the connection to PayPal checks out, but a full buy-and-capture round trip has not yet been proven with a real payment. Run a purchase in the sandbox first, then make one small real purchase yourself before you advertise the store. Payment reconciliation for Xendit relies on the webhook described above, so the Working state on the admin card is the proof to wait for.
If your server is behind a proxy or firewall
The webhook path is a public, server-to-server URL. It has no login, by necessity — the provider cannot log in as you. It is protected instead by the provider's own signature or token, an authoritative re-read of the payment status directly from the provider, and a rate limit.
That means POST /webhooks/* must be reachable from the public internet. If you block it, or put the
whole site behind an IP allow-list, asynchronous payments stop being fulfilled — with exactly the same
silent symptom as never having configured the URL.