PayZuDocs

交易失败时收单机构返回的代码及其含义。

收单机构在出错时提供的返回代码,用于标识失败原因。在卡 API 中,它们通过收款的 returnCodereturnMessage 字段暴露。

同一个数字在不同表中含义不同:121 在下方收单机构表中表示 Customer is required,在 Amex 的 ABECS 表中表示“余额/额度不足”。系统内部的流程判断请使用statusreasonCode,它们只有一套取值。

收单机构代码

代码(returnCode消息(returnMessage描述
0Internal error发送的数据超出字段长度限制。
100RequestId is required发送的字段为空或无效。
101MerchantId is required发送的字段为空或无效。
102Payment Type is required发送的字段为空或无效。
103Payment Type can only contain letters不允许使用特殊字符。
104Customer Identity is required发送的字段为空或无效。
105Customer Name is required发送的字段为空或无效。
106Transaction ID is required发送的字段为空或无效。
107OrderId is invalid or does not exist发送的字段超出长度限制或包含特殊字符。
108Amount must be greater or equal to zero交易金额必须大于或等于“0”。
109Payment Currency is required发送的字段为空或无效。
110Invalid Payment Currency发送的字段为空或无效。
111Payment Country is required发送的字段为空或无效。
112Invalid Payment Country发送的字段为空或无效。
113Invalid Payment Code发送的字段为空或无效。
114The provided MerchantId is not in correct format发送的 MerchantId 不是 GUID。
115The provided MerchantId was not foundMerchantId 不存在或属于其他环境(例如 sandbox)。
116The provided MerchantId is blocked店铺已被冻结,请联系电商支持团队。
117Credit Card Holder is required发送的字段为空或无效。
118Credit Card Number is required发送的字段为空或无效。
119At least one Payment is required未发送 Payment 节点。
120Request IP not allowed. Check your IP White List出于安全原因该 IP 已被拦截。
121Customer is required未发送 Customer 节点。
122MerchantOrderId is required发送的字段为空或无效。
123Installments must be greater or equal to one分期数必须大于或等于 1。
124Credit Card is Required发送的字段为空或无效。
125Credit Card Expiration Date is required发送的字段为空或无效。
126Credit Card Expiration Date is invalid发送的字段为空或无效。
127You must provide CreditCard Number信用卡卡号为必填项。
128Card Number length exceeded卡号超过 16 位。
129Affiliation not found支付方式未绑定到店铺,或 Provider 无效。
130Could not get Credit Card***
131MerchantKey is required发送的字段为空或无效。
132MerchantKey is invalid发送的 MerchantKey 无效。
133Provider is not supported for this Payment Type发送的 Provider 不存在。
134FingerPrint length exceeded发送的数据超出字段长度限制。
135MerchantDefinedFieldValue length exceeded发送的数据超出字段长度限制。
136ItemDataName length exceeded发送的数据超出字段长度限制。
137ItemDataSKU length exceeded发送的数据超出字段长度限制。
138PassengerDataName length exceeded发送的数据超出字段长度限制。
139PassengerDataStatus length exceeded发送的数据超出字段长度限制。
140PassengerDataEmail length exceeded发送的数据超出字段长度限制。
141PassengerDataPhone length exceeded发送的数据超出字段长度限制。
142TravelDataRoute length exceeded发送的数据超出字段长度限制。
143TravelDataJourneyType length exceeded发送的数据超出字段长度限制。
144TravelLegDataDestination length exceeded发送的数据超出字段长度限制。
145TravelLegDataOrigin length exceeded发送的数据超出字段长度限制。
146SecurityCode length exceeded发送的数据超出字段长度限制。
147Address Street length exceeded发送的数据超出字段长度限制。
148Address Number length exceeded发送的数据超出字段长度限制。
149Address Complement length exceeded发送的数据超出字段长度限制。
150Address ZipCode length exceeded发送的数据超出字段长度限制。
151Address City length exceeded发送的数据超出字段长度限制。
152Address State length exceeded发送的数据超出字段长度限制。
153Address Country length exceeded发送的数据超出字段长度限制。
154Address District length exceeded发送的数据超出字段长度限制。
155Customer Name length exceeded发送的数据超出字段长度限制。
156Customer Identity length exceeded发送的数据超出字段长度限制。
157Customer IdentityType length exceeded发送的数据超出字段长度限制。
158Customer Email length exceeded发送的数据超出字段长度限制。
159ExtraData Name length exceeded发送的数据超出字段长度限制。
160ExtraData Value length exceeded发送的数据超出字段长度限制。
161Boleto Instructions length exceeded发送的数据超出字段长度限制。
162Boleto Demostrative length exceeded发送的数据超出字段长度限制。
163Return Url is required回调 URL 无效。回调 URL 中不接受分页参数或扩展名(例如 PHP)。
166AuthorizeNow is required***
167Antifraud not configured反欺诈服务未绑定到商户档案。
168Recurrent Payment not found未找到循环扣款。
169Recurrent Payment is not active循环扣款未处于激活状态,执行已暂停。
170Cartão Protegido not configuredCartão Protegido(受保护卡)未绑定到商户档案。
171Affiliation data not sent订单处理失败,请联系电商支持团队。
172Credential Code is required发送的凭据验证失败。
173Payment method is not enabled支付方式未绑定到商户档案。
174Card Number is required发送的字段为空或无效。
175EAN is required发送的字段为空或无效。
176Payment Currency is not supported发送的字段为空或无效。
177Card Number is invalid发送的字段为空或无效。
178EAN is invalid发送的字段为空或无效。
179The max number of installments allowed for recurring payment is 1发送的字段为空或无效。
180The provided Card PaymentToken was not found未找到受保护卡的 token。
181The MerchantIdJustClick is not configured受保护卡的 token 已被冻结。
182Brand is required未发送卡组织信息。
183Invalid customer bithdate出生日期无效或为未来日期。
184Request could not be empty请求格式错误,请检查发送的代码。
185Brand is not supported by selected provider支付网关 API 不支持该卡组织。
186The selected provider does not support the options provided (Capture, Authenticate, Recurrent or Installments)支付方式不支持发送的指令。
187ExtraData Collection contains one or more duplicated names***
188Avs with CPF invalid***
189Avs with length of street exceeded发送的数据超出字段长度限制。
190Avs with length of number/complement exceeded发送的数据超出字段长度限制(地址门牌号或补充信息)。
191Avs with length of district exceeded发送的数据超出字段长度限制。
192Avs with zip code invalid发送的邮政编码(CEP)无效。
193Split Amount must be greater than zeroSPLIT 分账金额必须大于 0。
194Split Establishment is Required店铺档案未启用 SPLIT 分账。
195PlatformId is required未发送平台校验标识。
196DeliveryAddress is required未发送必填字段。
197Street is required未发送必填字段。
198Number is required未发送必填字段。
199ZipCode is required未发送必填字段。
200City is required未发送必填字段。
201State is required未发送必填字段。
202District is required未发送必填字段。
203Cart item name is required未发送必填字段。
204Cart item quantity is required未发送必填字段。
205Cart item type is required未发送必填字段。
206Cart item name length exceeded发送的数据超出字段长度限制。
207Cart item description length exceeded发送的数据超出字段长度限制。
208Cart item sku length exceeded发送的数据超出字段长度限制。
209Shipping addressee sku length exceeded发送的数据超出字段长度限制。
210Shipping data cannot be null未发送必填字段。
213Credit Card Number is invalid发送的信用卡无效。
214Credit Card Holder Must Have Only Letters持卡人姓名不得包含特殊字符。
215Agency is required in Boleto Credential未发送必填字段。
216Customer IP address is invalid出于安全原因该 IP 已被拦截。
300MerchantId was not found***
301Request IP is not allowed***
302Sent MerchantOrderId is duplicated订单出现重复。
303Sent OrderId does not exist***
304Customer Identity is required***
306Merchant is blocked***
307Transaction not found未找到交易,或交易在该环境中不存在。
308Transaction not available to capture交易无法请款,请联系电商支持团队。
*请检查所填金额是否低于交易总额,或交易是否可请款
309Transaction not available to void交易无法撤销,请联系电商支持团队。
310Payment method does not support this operation支付方式不支持发送的指令。
311Refund is not enabled for this merchant商户未开通 24 小时后的退款功能。
312Transaction not available to refund该交易不允许在 24 小时后退款。
313Recurrent Payment not found未找到循环扣款交易,或其在该环境中不可用。
314Invalid Integration***
315Cannot change NextRecurrency with pending payment***
316Cannot set NextRecurrency to past date不允许将循环扣款日期改为过去的日期。
317Invalid Recurrency Day***
318No transaction found***
319Smart Recurrency is not enabled循环扣款功能未绑定到商户档案。
320Cannot Update Affiliation because this recurrency has no affiliation saved***
321Cannot Set EndDate to before next recurrency***
322Zero Dollar Auth is not enabledZero Dollar 未绑定到商户档案。
323Bin Query is not enabledBIN 查询功能未绑定到商户档案。

其他错误代码

以下代码在 API 与收单机构之间通信失败(如超时)或集成出现问题时返回。

与收单机构通信失败时,交易仍有可能已获批准,状态会在之后自动对账。若要接收更新,请登记状态变更通知 URL,或通过 API 查询状态。

以下是部分返回的代码:

代码含义
BP171因欺诈风险被拒绝(Velocity)
BP335因支付分账(Split)交易错误被取消
BP900操作失败
BP901操作失败
BP902请等待上一操作的响应
BP903撤销失败
BP904查询失败

本页内容