Endpoint map
| Existing Epay path | Method | Purpose | Kyren behavior |
|---|---|---|---|
/epay/submit.php | GET or POST | Page redirect checkout | Creates or reuses an order, then returns HTTP 302 to /epay/redirect/{orderId} or an upstream payment page. |
/epay/mapi.php | POST | Server-to-server direct payment creation | Creates or reuses an order and returns Epay-style fields such as payurl, qrcode, img, and trade_no depending on channel. |
/epay/api.php?act=order | GET or POST | Order query | Queries by out_trade_no or trade_no. |
/epay/api.php?act=refund | GET or POST | Refund compatibility path | Currently returns an unsupported compatibility error. Refunds are handled separately with platform assistance. |
Migration flow
- Replace your Epay base URL with the Kyren Pay API base URL while keeping the compatible path.
- Use your Kyren-issued
pidand merchant key for Epay-compatible signing. - Keep
pid + signauthentication for Epay-compatible requests. Do not sendx-api-key. - Map your payment
typevalues to supported values:alipay,wxpay,creditcard,crypto, orpaynow. - Route browser checkout traffic to
submit.phpor server-side payment creation tomapi.php. - Verify payment results from the
notify_urlGET notification and return the plain stringsuccessafter processing. - Use
api.php?act=orderfor compatibility order queries and reconcile the resulting Kyren orders and settlements.