Skip to content

电商合单委托代扣查询订单

商户可以通过该接口发起免密的合单查询

请求参数类型描述
combine_out_trade_nostring合单商户订单号
php
$instance->v3->ecommerce->combinePapay->transactions->_combine_out_trade_no_->getAsync([
  'combine_out_trade_no' => 'P20150806125346',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/ecommerce/combine-papay/transactions/{combine_out_trade_no}')->getAsync([
  'combine_out_trade_no' => 'P20150806125346',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/ecommerce/combine-papay/transactions/{combine_out_trade_no}']->getAsync([
  'combine_out_trade_no' => 'P20150806125346',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->ecommerce->combinePapay->transactions->_combine_out_trade_no_->get([
  'combine_out_trade_no' => 'P20150806125346',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/combine-papay/transactions/{combine_out_trade_no}')->get([
  'combine_out_trade_no' => 'P20150806125346',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/combine-papay/transactions/{combine_out_trade_no}']->get([
  'combine_out_trade_no' => 'P20150806125346',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
combine_appidstring合单商户APPID
combine_mchidstring合单商户号
combine_out_trade_nostring合单商户订单号
sub_ordersobject[]子单信息
mchidstring子单商户号
trade_typestring交易类型
trade_statestring交易状态
bank_typestring付款银行
attachstring附加数据
success_timestring支付完成时间
transaction_idstring子单微信订单号
out_trade_nostring子单商户订单号
sub_mchidstring二级商户号
sub_appidstring二级商户appid
amountobject订单金额
total_amountinteger标价金额
currencystring标价币种
payer_amountinteger现金支付金额
payer_currencystring现金支付币种
combine_payer_infoobject支付者
openidstring用户标识

参阅 官方文档

Published on the GitHub by TheNorthMemory