Skip to main content
POST
mapi.php (direct create payment compatibility endpoint)

Body

application/x-www-form-urlencoded
pid
string
required

Merchant ID

type
enum<string>
required

Types for the 21 live payment methods available through submit.php and mapi.php. Use the recommended lowercase types below. Type matching is case-insensitive; sign the original value sent. Queries and notifications return the recommended type. Availability depends on enabled merchant channels, bindings, supported currencies and amount limits.

crypto uses the existing merchant binding to Paydify or legacy Satogate. usdt_direct is the separate USDT Direct method and only routes to Satogate. Provider names such as paydify, satogate, and evonet are not valid types.

Available options:
alipay,
alipay_hk,
boost,
creditcard,
crypto,
dana,
jkopay,
mir,
ovo,
payco,
paynow,
samsungpay,
sberpay,
sbp,
shopeepay,
tosspay,
touch_n_go_ewallet,
t_pay,
usdt_direct,
wxpay,
yoomoney,
alipayhk,
alihk,
credit_card,
samsung_pay,
sber_pay,
toss_pay,
touchngo,
tng,
tpay,
yoo_money
out_trade_no
string
required

Merchant order number (must be unique under one merchant)

notify_url
string<uri>
required

Merchant async callback URL

name
string
required

Product name

money
string
required

Order amount, decimal string, must be greater than 0. Paydify 下此值为 money_type 对应的商品计价金额,不是应付 USDT 数量;买家费用按现有规则计算。

clientip
string
required

Client IP address

sign
string
required

Lowercase MD5 signature

sign_type
enum<string>
required

Signature type. Current compatibility implementation only supports MD5.

Available options:
MD5
return_url
string<uri>

Merchant sync return URL

money_type
string
default:CNY

Currency code. Defaults to CNY when omitted. Paydify 在本地页按此计价币种锁定有效 USDT 报价,报价不可用时不回退提交 USD。

param
string

Pass-through parameter returned in callbacks and order queries

display_merchant_name
string

Optional per-payment merchant display name shown on KyrenPay intermediate payment pages

Maximum string length: 80
device
string
default:pc

Device identifier passed to gateway (e.g. pc)

channel_param
string

Optional JSON string for non-card channel-specific fields. For type=creditcard, the raw value participates in signature verification but is ignored after verification. Do not send card details or billing/contact data in this field; the buyer enters card information on a hosted payment page.

userId
string

Optional merchant user identifier passed to the payment gateway when supported.

Response

Epay-compatible create payment result

code
enum<integer>
required
Available options:
1
trade_no
string

Platform order ID

out_trade_no
string

Merchant order number

payurl
string | null

Redirect URL for browser/app payment flows. Paydify 返回 KyrenPay 本地 /epay/redirect/{orderId},不是上游付款二维码内容或已付款凭据。

qrcode
string | null

QR code payload or H5 payment URL depending on channel. Paydify 的 mapi.php 响应不返回此字段,应打开 payurl 完成买家选择与报价确认。

img
string | null

QR image URL generated from qrcode for channels that return it. Paydify 的 mapi.php 响应不返回此字段;其本地页直接展示上游返回的二维码图片。