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

Payment channel type in Epay compatibility mode. crypto 按商户绑定选择 Satogate 或 Paydify;Paydify 不新增独立 type 值,也不能通过请求参数覆盖绑定。

Available options:
alipay,
wxpay,
creditcard,
crypto,
paynow
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 Kyren 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 返回 Kyren 本地 /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 响应不返回此字段;其本地页直接展示上游返回的二维码图片。