API documentation
Accept QR Ph, GCash and Maya with one API call and one webhook.
Overview
- Your server calls
POST /v1/paymentswith the amount → you get acheckout_url. - Redirect your customer to the
checkout_url. They pay with QR Ph, GCash or Maya. - We send a signed
payment.paidwebhook to your server. Fulfil the order only after this webhook (or afterGET /v1/payments/:idreturnspaid). - The customer is sent back to your
success_url. Never treat that redirect alone as proof of payment.
https://payment.sikatpinoy.net/api · Amounts are integers in centavos (₱150.00 = 15000).Authentication
Send your API key (from Dashboard → Developers) as a Bearer token. Keep it on your server — never in browser JavaScript or a mobile app.
Authorization: Bearer mk_your_live_key # real payments Authorization: Bearer mk_test_your_test_key # simulated payments (test mode)
Test mode
Build and test your whole integration without moving any money. Generate a test key (mk_test_…) in Dashboard → Developers — it works even while your account is still waiting for approval.
- Use the same API and base URL. Payments created with a test key open a test checkout page where you choose the outcome: successful, failed or expired.
- A successful test sends the real, signed
payment.paidwebhook to all your webhooks, with"livemode": false— so the exact code you test is the code that runs in production. - Test payments never touch your balance, payouts or limits, and are marked TEST in your dashboard. Test and live payments are fully separate: a test key cannot read live payments and the same
order_idcan be used in both. - In production, ignore (or log) any event with
"livemode": falseif you share one webhook between environments.
Create a payment
POST /v1/payments
| Field | Type | Description |
|---|---|---|
| amount | integer | Required. Centavos. |
| order_id | string | Your reference (max 100). Letters, numbers, - _ . : # / and spaces. |
| description | string | Shown to the customer (max 200). |
| success_url | string | Where the customer goes after paying (https). |
| cancel_url | string | Where the customer goes if they cancel (https). |
curl -X POST https://payment.sikatpinoy.net/api/v1/payments \
-H "Authorization: Bearer mk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"amount": 15000, "order_id": "ORDER-1001", "description": "2x Iced Latte",
"success_url": "https://yourshop.ph/thank-you", "cancel_url": "https://yourshop.ph/cart"}'
Response 201:
{
"id": "Xq8k2Lm0Pa9sTu4vWy7z",
"status": "pending",
"amount": 15000,
"currency": "PHP",
"order_id": "ORDER-1001",
"checkout_url": "https://payment.sikatpinoy.net/pay?id=Xq8k2Lm0Pa9sTu4vWy7z",
"expires_at": "2026-09-28T07:15:00.000Z"
}
A payment link is valid for 1 hour. Create a new payment if it expires.
order_id you always get the same pending payment back (HTTP 200, "reused": true), so a double-clicked "Pay" button can never create two payments for one order. If that order is already paid you get 409 order_already_paid. Always send an order_id.success_url (e.g. https://yourshop.ph/thank-you?order=ORDER-1001) so your thank-you page knows which order it is. Save the returned id on your order too — it is how you match the webhook.Retrieve a payment
GET /v1/payments/:id — use it to double-check a payment before shipping, or if you missed a webhook.
{
"id": "Xq8k2Lm0Pa9sTu4vWy7z",
"status": "paid", // pending | paid | expired | review
"amount": 15000,
"method": "qrph", // qrph | gcash | paymaya
"platform_fee": 900,
"net_amount": 14100, // what goes to your balance
"paid_at": "2026-09-28T06:20:11.000Z",
...
}
Webhooks
Add your webhook URL in Dashboard → Developers. You can add more than one (e.g. your website and your POS) — the first is free, extra ones are a one-time add-on. Each webhook has its own signing secret. When a payment is paid we POST this JSON:
{
"id": "evt_3f1c9a…", // same id on every retry and every endpoint — use it to ignore duplicates
"type": "payment.paid",
"livemode": true, // false for test-mode payments and dashboard test events
"created": 1790000000, // unix seconds
"data": { // the payment object, same as GET /v1/payments/:id
"id": "Xq8k2Lm0Pa9sTu4vWy7z", "livemode": true, "status": "paid",
"amount": 15000, "currency": "PHP", "order_id": "ORDER-1001", "description": "2x Iced Latte",
"method": "qrph", "platform_fee": 900, "net_amount": 14100,
"checkout_url": "…", "created_at": "…", "paid_at": "…", "expires_at": "…"
}
}
Request headers
| X-Signature | t=<unix seconds>,v1=<hex> where v1 = HMAC_SHA256(endpoint_signing_secret, t + "." + raw_body) |
| X-Event-Id | Same as id in the body |
| Content-Type | application/json |
| User-Agent | PaymentGateway-Webhook/1.0 |
Event types
payment.paid— the customer paid. Fulfil the order (once).ping— a reachability test from the dashboard. Answer200.- Answer
200to any type you don't handle, so new event types never break your endpoint.
Verify, then respond fast
Verify the signature with the raw request body (not re-serialized JSON) using a constant-time comparison, and reject timestamps older than 5 minutes. Answer within 8 seconds — do slow work after responding. If your endpoint does not answer 2xx we retry after 5, 10 and 30 seconds, then 1, 5, 15 and 30 minutes, then 1, 3, 6, 12 and 24 hours, always with the same event id.
Live, test or both
Each webhook has a Receives setting: Live only (recommended for production), Test only (staging or your laptop), or Live + test. A test-mode payment is never sent to a live-only webhook. If you use one URL for both, check livemode before fulfilling anything.
Send test event & event deliveries
- Send test event (Dashboard → Developers) posts either a
pingor a samplepayment.paid(livemode: false,order_idstarting withSAMPLE-ORDER-) to one webhook, signed like a real event, and shows your server's reply. - Deliveries lists every attempt of the last 30 days — event, order, HTTP status, response time and the first 300 characters your server returned — so you can see exactly why a delivery failed. You can resend any payment's webhook from Payments.
- If an endpoint keeps failing, your dashboard shows an alert until the next successful delivery.
PHP example
create-payment.php
<?php
$apiKey = getenv('PAYMENT_API_KEY'); // mk_...
$ch = curl_init('https://payment.sikatpinoy.net/api/v1/payments');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey, 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'amount' => 15000,
'order_id' => 'ORDER-1001',
'description' => '2x Iced Latte',
'success_url' => 'https://yourshop.ph/thank-you',
'cancel_url' => 'https://yourshop.ph/cart',
]),
]);
$res = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 201) { http_response_code(502); exit($res['error']['message'] ?? 'Payment error'); }
// Save $res['id'] on your order, then send the customer to pay:
header('Location: ' . $res['checkout_url']);
webhook.php
<?php
$secret = getenv('PAYMENT_WEBHOOK_SECRET'); // whsec_...
$raw = file_get_contents('php://input');
$header = $_SERVER['HTTP_X_SIGNATURE'] ?? '';
parse_str(str_replace(',', '&', $header), $sig); // ['t' => ..., 'v1' => ...]
$expected = hash_hmac('sha256', ($sig['t'] ?? '') . '.' . $raw, $secret);
if (empty($sig['v1']) || !hash_equals($expected, $sig['v1']) || abs(time() - (int) $sig['t']) > 300) {
http_response_code(401);
exit('invalid signature');
}
$event = json_decode($raw, true);
if ($event['type'] === 'payment.paid') {
$orderId = $event['data']['order_id'];
// Mark the order as paid ONLY if it is not already paid (webhooks can be retried).
}
http_response_code(200);
echo 'ok';
Node.js example (Express)
import express from 'express';
import crypto from 'crypto';
const app = express();
const API = 'https://payment.sikatpinoy.net/api/v1/payments';
app.post('/checkout', express.json(), async (req, res) => {
const r = await fetch(API, {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.PAYMENT_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ amount: 15000, order_id: 'ORDER-1001', success_url: 'https://yourshop.ph/thank-you' })
});
const payment = await r.json();
if (r.status !== 201) return res.status(502).send(payment.error?.message);
res.redirect(payment.checkout_url);
});
// Use the RAW body for signature verification.
app.post('/webhooks/payment', express.raw({ type: 'application/json' }), (req, res) => {
const header = req.get('X-Signature') || '';
const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const expected = crypto.createHmac('sha256', process.env.PAYMENT_WEBHOOK_SECRET)
.update(`${t}.${req.body.toString('utf8')}`).digest('hex');
const valid = v1 && v1.length === expected.length
&& crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected))
&& Math.abs(Date.now() / 1000 - Number(t)) < 300;
if (!valid) return res.status(401).send('invalid signature');
const event = JSON.parse(req.body.toString('utf8'));
if (event.type === 'payment.paid') {
// mark event.data.order_id as paid (skip if already paid)
}
res.send('ok');
});
app.listen(3000);
Testing
- Start with your test key (see Test mode); switch to the live key only after a successful test run.
- Your webhook URL must be on your own server, e.g.
https://yourshop.ph/webhooks/payment— not on this gateway. - Click Send test event in Dashboard → Developers. Your endpoint receives
type: "ping"— answer200for any event type you don't handle. - To test locally, expose your machine with a tunnel (e.g. ngrok or Cloudflare Tunnel) and use that https URL as your webhook.
- Payment statuses:
pending(waiting),paid(confirmed — deliver the order),expired(link older than 1 hour),review(paid amount did not match — we will contact you).
Keep prices on your server
The most common way shops lose money is not a hacked gateway — it is a checkout that trusts the browser. A customer edits the request and buys the ₱10,000 plan for ₱150. SikatPay always charges exactly the amount your server sent, and the webhook reports exactly what was paid, so follow three rules:
- The browser sends the price or the plan's value.
- The account is upgraded on the success page.
- The webhook's amount is not checked.
- The browser sends only an item or plan key; your server looks up the price.
- You grant the purchase only in your webhook handler.
- You grant it only if
data.amountequals the order total you saved.
// server — the client only says WHICH plan
const PLANS = { monthly: 15000, yearly: 100000 }; // centavos
const amount = PLANS[req.body.plan]; // never req.body.amount
if (!amount) return res.status(400).send('unknown plan');
// webhook — grant only what was actually paid, once
if (order.status === 'paid') return ok(); // retry / duplicate
if (event.data.amount !== order.amount) return flagForReview();
markPaidAndGrant(order);
Reliability & idempotency
Idempotent means repeating a request has the same effect as doing it once. Networks drop, customers double-click and servers retry — SikatPay is built so none of that creates a second charge, a second credit or a second payout.
- One payment per
order_id. Creating a payment again with the same order_id returns the same payment ("reused": true); a paid order can't be charged again. - Exactly-once crediting. Every confirmation from the payment network is signature-checked and applied inside a database transaction with a status guard, so a repeated confirmation is ignored. The paid amount and payment reference must match, otherwise the payment is held for manual review instead of being credited.
- Duplicate payments are caught. If a customer pays the same link twice, the second payment is flagged for a refund instead of being credited.
- Tracked states. Payments move
pending → paid(orexpired/review); payouts moverequested → paid / rejected. Every balance change writes an entry to an append-only ledger, so every peso can be traced. - Event deliveries. Each webhook delivery is recorded per endpoint and retried automatically (5 s, 10 s, 30 s, then minutes, then hours up to 24 h) with the same event id. You see the delivery status of every payment in your dashboard, can resend it, and get an alert if an endpoint keeps failing.
Security
- All money logic runs on our servers. Browsers and apps cannot change balances, payments or payouts.
- Webhooks are signed with HMAC-SHA256 using a separate secret per endpoint. API keys are stored hashed and can be rotated anytime.
- Every merchant is identity-verified (KYC) and manually approved. Accounts used for prohibited businesses are frozen automatically.
- Rate limiting, duplicate-order protection, fraud checks on payout changes, and a protected network edge.
- Found a security issue? Email us — see Support in the footer. Please don't test against other merchants' accounts.
Errors
Errors return a JSON body { "error": { "code", "message" } }.
| HTTP | code | Meaning |
|---|---|---|
| 400 | invalid_amount / invalid_request | Check the fields. |
| 401 | unauthorized | Missing or wrong API key. |
| 403 | merchant_inactive | Account pending, frozen or rejected. |
| 403 | policy_violation | The description or order_id contains a prohibited term. Your account is frozen — see Prohibited businesses. |
| 404 | not_found | Unknown payment or endpoint. |
| 409 | order_already_paid | This order_id was already paid — do not charge again. |
| 409 | order_pending_different_amount | A pending payment for this order_id has another amount. Use a new order_id or wait 1 hour. |
| 429 | daily_limit / daily_create_limit / rate_limited | Daily amount or count limit, or more than 600 requests per minute. |
| 500 | server_error | Retry after a moment. |
Go-live checklist
- ☐ API key stored in an environment variable on your server, never in the browser.
- ☐ Webhook signature verified with the raw body.
- ☐ Orders are marked paid only once, even if the webhook is delivered twice.
- ☐ The amount in the webhook matches your order total.
- ☐ "Send test event" returns HTTP 200 from your endpoint.
- ☐ A full test-mode run (create → simulate success → webhook → order fulfilled) passes, then you switch to the live key.
- ☐ Prices come from your server, never from the browser (see Keep prices on your server).
FAQ
Why does the customer's app show "PMP BONGGOT TECH" as the recipient?
SikatPay is operated by Bonggot Tech. Payments are collected under the company's registered name, so GCash, Maya and bank apps show PMP BONGGOT TECH as the recipient, then SikatPay credits your merchant balance. The checkout page tells your customer this before they pay, so they know it is the right recipient.
Is SikatPay licensed?
SikatPay is in beta, operated by Bonggot Tech, a registered Philippine business. We are not a bank or e-money issuer and do not hold a BSP license ourselves: payments are processed by a licensed payment processor, and SikatPay provides the checkout, API and merchant tools on top. During the beta we work with a limited number of approved merchants.
What does the transaction fee cover?
No setup fee and no monthly fee — you pay only on successful payments. The fee covers the payment network costs and everything around them: a ready branded checkout for QR Ph, GCash and Maya, signed webhooks with automatic retries, your dashboard and ledger, payouts to GCash, Maya or your bank, fraud and duplicate protection, test mode, and local support. See current rates on the pricing section.
Can I test before my account is approved?
Yes. Generate a test key and add a webhook right after you register — test payments work while your application is under review.
What happens if my server is down when a customer pays?
The payment is still recorded and credited to your balance. We keep retrying your webhook for up to 24 hours, show the delivery status in your dashboard, and you can resend it anytime.