/epay/mapi.php is the server-to-server Epay compatibility endpoint. It accepts form POST, creates or reuses a KyrenPay order, and returns Epay-style response fields such as payurl, qrcode, img, and trade_no depending on the selected channel.
This endpoint uses pid + sign, not x-api-key. Because it is server-to-server, it may be subject to the API IP allowlist when enabled. A failed allowlist check can return numeric code 0 with msg.
Parameters
Required parameters:
Optional parameters:
Supported payment types
Both/epay/submit.php and /epay/mapi.php share the following list of 21 live payment methods. Use the recommended lowercase value for new integrations. Availability depends on your merchant’s enabled channels and bindings, supported currencies and amount limits; a listed value does not enable a channel.
Type matching is case-insensitive, but sign the exact value you send. Order queries and payment notifications return the recommended type, even if the request used an alias.
crypto selects the merchant’s existing cryptocurrency channel binding (Paydify or a legacy Satogate binding). usdt_direct selects the separate USDT Direct method, which only routes to Satogate. Do not use provider names such as paydify, satogate, or evonet as type.
Example request
Success response example
Failure response example
mapi.php API reference.