Payments
Process payments, refunds, cancellations, and manual transaction saves.
POST
/api/v1/{system}/payNowProcess a payment. Tenant ownership is validated server-side.
Auth: Bearer JWT
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| grandTotal | string | Yes | Decimal amount (e.g. '10.00') |
| referenceId | string | Yes | Unique transaction reference |
| branchId | long | Yes | Branch user ID |
| configId | long | Yes | Terminal config ID |
| channel | string | No | WECHAT, ALIPAY, UNION_PAY, etc. |
| authCode | string | No | QR scan code (required when qrMode=false) |
| qrMode | boolean | No | true = generate QR for customer to scan |
Response Example
{
"status": true,
"paymentStatus": "SUCCESS",
"referenceId": "REF-001",
"tradeNo": "TRADE-123",
"grandTotal": "10.00",
"channel": "WECHAT"
} SandboxCalls go to
https://payus.co.nz