Quick start
Once the portal approves your project and you open the sale, the project gets a sale page:
https://launchpadportal.dev/buy/<slug>
slug is the page address you chose when creating the project. The portal does the rest: accepts the payment, checks the amount, sends the tokens to the buyer and credits the revenue to your balance. Below are the ways to connect, from simplest to most flexible — you can combine them.
No code
A link or a button. Ready in a minute.
On your site
A button with a checkout popup, or a form right on the page.
Your own UI
Open API for orders and signed webhooks to your server.
1. Link
The simplest way — post a link on your site, in Telegram or in a newsletter:
<a href="https://launchpadportal.dev/buy/your-token?ref=user-123">Buy tokens</a>
The ref parameter is optional (see buyer tag). Add lang=en|es|ru|zh to set the page language.
2. Button on your site
Paste this into your site's HTML where the button should be. Clicking it opens the checkout on top of your page:
<script src="https://launchpadportal.dev/widget.js" data-project="your-token" data-ref="user-123" data-lang="en" data-label="Buy YOUR"></script>
| Attribute | What it sets |
|---|---|
data-project | project slug, required |
data-ref | your buyer tag: user id, order id or campaign |
data-lang | language: en (default), es, ru, zh |
data-label | button text |
data-mode | button (default) or inline — the form right on the page |
data-height | form height in inline mode, px (default 860) |
https://your-site.com.3. Embedded form (iframe)
If you prefer a plain iframe:
<iframe src="https://launchpadportal.dev/buy/your-token?embed=1&lang=en&ref=user-123" width="480" height="860" style="border:0;border-radius:20px" allow="clipboard-write"></iframe>
embed=1 removes extra padding and the footer. As with the button, add your site's domain in the project settings.
Buyer tag (ref)
Use ref to pass your own tag: the user id in your app, an application number or a partner code. It is stored with the order, shown in the dashboard and included in every notification, so you can link the purchase to your user without manual reconciliation. Up to 100 characters: Latin letters, digits and _ . : @ # / -.
4. Order webhooks
Set an https URL of your server in the dashboard (Integration → Webhook URL). The portal sends a POST with JSON there whenever an order of your projects changes status: paid, delivered, underpaid, expired, etc. The "Send test" button in the dashboard checks the connection.
POST https://your-server.com/lp-webhook Content-Type: application/json X-LP-Event: order.delivered X-LP-Event-Id: evt_1842 X-LP-Timestamp: 1796216400 X-LP-Signature: 5d0c…e91a { "id": "evt_1842", "event": "order.delivered", "order": { "id": "a30909ed-bfe2-4678-b2f4-7d49bd22f2b3", "ref": "user-123", "project": "your-token", "symbol": "YOUR", "status": "delivered", "tokens": "2000", "usd": "2", "pay_currency": "USDT", "pay_network": "trc20", "pay_amount": "8", "network_fee": "6", "paid_amount": "8", "recipient": "9xQe…", "payment_txids": ["4389…7672"], "delivery_tx": "3Hk…", "created_at": "…", "paid_at": "…", "delivered_at": "…" }, "at": "2026-12-02T13:00:00.000Z" }
- Reply with 2xx within 15 seconds. Otherwise we retry after 30 s, 2 min, 10 min, 30 min, 1 h, 3 h, 6 h, then every 12 h — up to 12 attempts.
- The same event may arrive more than once. Deduplicate by
X-LP-Event-Id. - Events:
order.paid,order.delivered,order.underpaid,order.paid_late,order.failed,order.expired,order.refunded,order.cancelled. Test event:test. - Credit bonuses or mark the purchase on
order.delivered— it means the tokens are already with the buyer.
Signature check
X-LP-Signature is HMAC-SHA256 of X-LP-Timestamp + "." + raw request body, keyed with the webhook secret from the dashboard (Integration → Secret). Compute it over the raw body before parsing JSON, and reject requests older than 5 minutes.
import express from 'express'; import crypto from 'node:crypto'; const SECRET = process.env.LP_WEBHOOK_SECRET; // whsec_… from the dashboard const app = express(); app.post('/lp-webhook', express.raw({ type: 'application/json' }), (req, res) => { const ts = req.get('X-LP-Timestamp'); const sig = req.get('X-LP-Signature') || ''; const want = crypto.createHmac('sha256', SECRET).update(`${ts}.`).update(req.body).digest('hex'); const fresh = Math.abs(Date.now() / 1000 - Number(ts)) < 300; if (!fresh || sig.length !== want.length || !crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(want))) return res.sendStatus(403); const e = JSON.parse(req.body); // duplicate? — check e.id in your database and just reply 200 if (e.event === 'order.delivered') { // e.order.ref — your user tag, e.order.tokens — how many tokens they received } res.sendStatus(200); });
<?php $secret = getenv('LP_WEBHOOK_SECRET'); // whsec_… from the dashboard $raw = file_get_contents('php://input'); $ts = $_SERVER['HTTP_X_LP_TIMESTAMP'] ?? ''; $sig = $_SERVER['HTTP_X_LP_SIGNATURE'] ?? ''; $want = hash_hmac('sha256', $ts . '.' . $raw, $secret); if (abs(time() - (int)$ts) > 300 || !hash_equals($want, $sig)) { http_response_code(403); exit; } $e = json_decode($raw, true); // duplicate? — check $e['id'] in your database (unique index) and reply 200 if ($e['event'] === 'order.delivered') { // $e['order']['ref'] — your user, $e['order']['tokens'] — how many they received } http_response_code(200);
import hmac, hashlib, json, os, time from flask import Flask, request, abort SECRET = os.environ["LP_WEBHOOK_SECRET"].encode() # whsec_… from the dashboard app = Flask(__name__) @app.post("/lp-webhook") def lp_webhook(): raw = request.get_data() ts = request.headers.get("X-LP-Timestamp", "") sig = request.headers.get("X-LP-Signature", "") want = hmac.new(SECRET, ts.encode() + b"." + raw, hashlib.sha256).hexdigest() if abs(time.time() - int(ts or 0)) > 300 or not hmac.compare_digest(want, sig): abort(403) e = json.loads(raw) # duplicate? — check e["id"] in your database and reply 200 if e["event"] == "order.delivered": pass # e["order"]["ref"], e["order"]["tokens"] return "", 200
5. Open API
For your own purchase form on your site or in your app. No key needed, and requests can be made straight from the browser (CORS is open). Limit: 10 new orders per minute per IP. Send Accept-Language: en|es|ru|zh to get error messages in that language.
Sale info
GET https://launchpadportal.dev/api/projects/<slug> → { name, symbol, mint, decimals, currentStage, currentPriceUsd, stageLeft, stages[…], minUsd, maxUsd, soldOut }
Payment methods
GET https://launchpadportal.dev/api/config
→ { payMethods: [ { id: "USDT_TRC20", currency: "USDT", network: "trc20", networkFeeUsd: "6" }, … ] }
Quote
POST https://launchpadportal.dev/api/quote
{ "slug": "your-token", "tokens": "2000", "currency": "USDT_TRC20" }
→ { tokens: "2000", usd: "2", currency: "USDT", network: "trc20", payAmount: "8", networkFee: "6", breakdown: […] }
Create an order
POST https://launchpadportal.dev/api/orders
{
"slug": "your-token",
"tokens": "2000",
"currency": "USDT_TRC20", // id from /api/config
"recipient": "<buyer's Solana address>",
"mode": "address",
"ref": "user-123"
}
→ { id, status: "pending", payAmount: "8", networkFee: "6", currency: "USDT", payNetwork: "trc20",
payAddress: "TQdi…", expiresAt: "…" }
Show the buyer payAddress, the exact payAmount and the network. payAmount already includes the incoming network fee (networkFee; $6 on TRC20). The buyer pays it; your balance is credited with the full token price minus the portal fee. QR code with the address: GET /api/orders/<id>/qr.svg.
Order status
GET https://launchpadportal.dev/api/orders/<id> → { id, status, paidAmount, paymentSigs, deliverySig, … }
Poll no more than once every 3 seconds while the buyer is on the page. For bookkeeping on your side, webhooks are more reliable.
Order statuses
| status | Meaning |
|---|---|
| pending | waiting for payment |
| paid | payment received, tokens are being sent |
| delivering | delivery transaction sent, waiting for network confirmation |
| delivered | tokens are with the buyer, revenue credited to your balance |
| underpaid | less than required arrived; the buyer can top up to the same address, otherwise support decides |
| paid_late | payment arrived after the deadline; support decides |
| failed | payment received but delivery failed (e.g. the project wallet is out of tokens or SOL). Top up the wallet — support will retry |
| expired | not paid in time |
| refunded / cancelled | refunded / cancelled |
Before launch
- The project wallet holds tokens for upcoming sales and SOL for fees: about 0.0021 SOL per new buyer (creating their token account).
- Stages and prices are set; minimum and maximum purchase amounts fit your audience.
- Your site domains are added to "Embed domains" if you use the button or iframe.
- Your webhook URL returns 2xx to the test event and the signature check passes.
- A payout address (TRC20 or Solana) is set in your profile.
- Make a test purchase for the minimum amount.