/epay/submit.php is the browser-oriented Epay compatibility endpoint. It creates or reuses a Kyren order and returns HTTP 302 to /epay/redirect/{orderId} or an upstream payment page.
Use this path when the customer browser is redirected to checkout. It uses pid + sign, not x-api-key, and end-user browser visits do not require a merchant server IP allowlist.
Parameters
Required parameters:| Parameter | Description |
|---|---|
pid | Kyren-issued merchant Epay-compatible merchant ID. |
type | Payment type. Supported values include alipay, wxpay, creditcard, crypto, and paynow. |
out_trade_no | Your merchant order number. |
notify_url | Merchant payment result notification URL. |
return_url | Browser return URL after checkout. |
name | Order or product name. |
money | Decimal string amount, for example "9.99". |
sign | Epay-compatible MD5 signature. |
sign_type | Signature type, usually MD5. |
| Parameter | Description |
|---|---|
money_type | Currency or money type if provided by your existing integration. |
display_merchant_name | Per-payment merchant display name shown on Kyren intermediate payment pages. |
param | Passthrough merchant metadata returned in notifications. |
Example form
Notification handling
After payment completes, Kyren sends a GET request tonotify_url with:
pid, trade_no, out_trade_no, type, name, money, trade_status, param, sign, and sign_type.
Verify the signature, process the result idempotently, then return the plain string:
submit.php API reference.