Verifying authenticated session... Vendor API specifications are restricted to authorized Partners and Administrators.
Comprehensive developer documentation for external merchants, platforms, and partners (Singapore & Global) integrating with the Sogdo Payment Gateway.
Before initiating payments, external vendors must be registered by the Sogdo Payment administrator (pay.sogdo.com) to receive their production credentials.
| Credential | Type | Description & Usage |
|---|---|---|
Client Code |
Identifier | Your vendor client code (e.g. SINGAPORE_PORTAL_WEB). |
Publishable Key (pk_...) |
Public Key | Included in hosted checkout redirect links and client-side web requests. Safe for browser use. |
Client Secret (sec_...) |
Private Secret | Kept confidential on your server backend. Used to sign server-to-server HMAC requests and verify webhooks. |
Allowed Origins |
URL Whitelist | Your registered application domains (e.g. https://yourdomain.sg) permitted to trigger and receive redirects. |
The hosted checkout flow provides an immediate, turn-key payment experience with zero compliance overhead. Customers are seamlessly redirected to https://pay.sogdo.com/checkout.html, where your branded order is presented and paid, after which the customer returns directly to your application.
| Parameter | Requirement | Description |
|---|---|---|
pk (or publicKey) |
Required | Your publishable API key (e.g. pk_live_...). |
plan (or planCode) |
Required | Plan code, package, or fee identifier configured for your account. |
amount |
Optional | Custom amount for open-amount plans (e.g. 499.00). Omit if plan has fixed catalogue pricing. |
r (or returnUrl) |
Required | Fully qualified callback URL on your site where customer is returned after payment (must match an Allowed Origin). |
ref |
Optional | Your platform's internal Order ID or invoice tracking number (e.g. ORD-SG-9012). |
email |
Optional | Customer email address for receipt and gateway prefill. |
name |
Optional | Customer full name. |
phone |
Optional | Customer mobile phone number for SMS payment updates. |
When the transaction concludes, the customer's browser is automatically redirected to your returnUrl with these parameters:
| Parameter | Values | Meaning |
|---|---|---|
paid |
"true" | "false" | "pending" |
Payment settlement indicator. Only fulfill orders when paid=true or confirmed via status API. |
orderRef |
"SOGDO-ORD-..." |
Unique transaction reference ID generated by Sogdo Payment. |
status |
"PAID" | "CANCELLED" | "PENDING" |
Final gateway status. |
To guard against client-side tampering, your backend server should verify the order status using the public status endpoint or HMAC client API.
When an external vendor needs to refund a customer, you can submit a refund request via the API or your Vendor Portal. The refund request lands on the Sogdo Admin console, where the administrator reviews and processes it through our payment network to return the funds to the customer's bank account or UPI.
| Header / Parameter | Type | Description |
|---|---|---|
X-Sogdo-Public-Key |
Header | Your vendor publishable key (pk_...). |
orderRef |
String (Body) | The original Sogdo order reference (e.g. SOGDO-ORD-20261005-XXXXXX). Required. |
amount |
Decimal (Body) | Refund amount (optional; defaults to full order amount). |
reason |
String (Body) | Reason for customer refund (e.g. Customer requested refund / duplicate payment). |
Returns refund status (PENDING_APPROVAL, REFUNDED, or REJECTED) and gateway refund reference.
Test and build your vendor checkout redirect URL in real time: