Skip to content

Trade Status

Updated: 7/26/26, 4:29:53 PM

All codes below are taken from the open-source enum classes and are code-authoritative.

Payment Status — PayStatusEnum

Dictionary: pay_status

codeMeaningDescription
waitPendingNo channel / method specified yet
progressIn progressChannel and method selected, payment initiated
successSuccessPayment succeeded
closeClosedPayment closed
cancelCancelledPayment cancelled (voided)
timeoutTimeoutIntermediate state set after the order times out
failFailedPayment failed

Payment State Machine

Trade Status — TradeStatusEnum

Dictionary: trade_status

codeMeaningDescription
progressIn progressTrade is being processed
successSuccessTrade completed successfully
failFailedTrade failed
closedClosedTrade has been closed
revokedRevokedTrade has been revoked
exceptionExceptionTrade encountered an exception

Refund Status — PayRefundStatusEnum

Dictionary: pay_refund_status

Refund progress at the payment-order level:

codeMeaningDescription
no_refundNo refundNo refund operation yet
refundingRefundingA refund is in progress
partial_refundPartial refundPart of the amount has been refunded
refundedFully refundedThe full payment amount has been refunded

Trade Type — TradeTypeEnum

Dictionary: trade_type

codeMeaningDescription
payPaymentPayment transaction
cashoutsWithdrawalWithdrawal transaction
settleSettlementProfit-sharing / settlement transaction

Normal Pay Order Status — NormalPayOrderStatusEnum

Dictionary: normal_order_status

Business status of the pay_normal_order container:

codeMeaningDescription
wait_payWait to pay
paidPaid
failedFailedFunds-level failure, distinct from manual closed
closedClosedManual close / void
expiredExpiredClosed due to timeout

Released under the GNU LGPL v3.0