Skip to content

个人收款交易通过微信支付订单号查单

平台通过查询订单API查询订单状态,完成下一步的业务逻辑。需要调用查询接口的情况: - 当商户后台、网络、服务器等出现异常,商户系统最终未接收到支付通知。 - 调用支付接口后,返回系统错误或未知交易状态情况。 - 调用刷卡支付API,返回USERPAYING的状态。 - 调用关单或撤销接口API之前,需确认支付状态。

请求参数类型描述
combine_transaction_idstring交易单微信支付订单号
php
$instance->v3->combineTransactions->id->_combine_transaction_id_->getAsync([
  'combine_transaction_id' => '1217752501201407033233368018',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/combine-transactions/id/{combine_transaction_id}')->getAsync([
  'combine_transaction_id' => '1217752501201407033233368018',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/combine-transactions/id/{combine_transaction_id}']->getAsync([
  'combine_transaction_id' => '1217752501201407033233368018',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->combineTransactions->id->_combine_transaction_id_->get([
  'combine_transaction_id' => '1217752501201407033233368018',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/combine-transactions/id/{combine_transaction_id}')->get([
  'combine_transaction_id' => '1217752501201407033233368018',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/combine-transactions/id/{combine_transaction_id}']->get([
  'combine_transaction_id' => '1217752501201407033233368018',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
combine_appidstring平台商户应用ID
combine_mchidstring平台商户号
combine_out_trade_nostring交易单订单号
combine_transaction_idstring交易单微信支付订单号
combine_payer_infoobject支付者
openidstring用户标识
scene_infoobject场景信息
device_idstring商户端设备号
sub_ordersobject[]商品单列表
mchidstring商品单发起商户号
individual_auth_idstring商品单个人收款方受理授权ID
individual_namestring商品单个人收款方平台昵称
out_trade_nostring商品单订单号
transaction_idstring微信支付订单号
trade_typestring交易类型
trade_statestring交易状态
bank_typestring付款银行
attachstring附加数据
success_timestring支付完成时间
amountobject订单金额
total_amountnumber标价金额
payer_amountnumber现金支付金额
currencystring标价币种
payer_currencystring现金支付币种
settlement_ratenumber结算汇率
trade_scenariostring交易场景
RECOMMERCE 枚举值

参阅 官方文档

Published on the GitHub by TheNorthMemory