Skip to content

企业商户获取指定额度卡支付链接

企业商户获取指定额度卡支付链接。该接口允许服务商获取指定额度卡的支付链接,员工可通过该链接使用额度卡进行支付,链接有效期较短,请在有效期内使用。企业可通过此接口为员工生成便捷的支付入口,简化支付流程。

请求参数类型描述
employee_idstring微信授权关系ID
card_nostring企业支付额度卡卡号
queryobject声明请求的查询参数
sp_mchidstring服务商商户号
sub_mchidstring出资子商户号
application_typestring拉起付款码页面的企业应用类型
H5 | MINIPROGRAM 枚举值之一
php
$instance->v3->webizpay->employees->_employee_id_->quotaCards->_card_no_->paymentUrl->getAsync([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'query' => [
    'sp_mchid'         => '12341234',
    'sub_mchid'        => '43214321',
    'application_type' => 'H5',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/payment-url')->getAsync([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'query' => [
    'sp_mchid'         => '12341234',
    'sub_mchid'        => '43214321',
    'application_type' => 'H5',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/payment-url']->getAsync([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'query' => [
    'sp_mchid'         => '12341234',
    'sub_mchid'        => '43214321',
    'application_type' => 'H5',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->webizpay->employees->_employee_id_->quotaCards->_card_no_->paymentUrl->get([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'query' => [
    'sp_mchid'         => '12341234',
    'sub_mchid'        => '43214321',
    'application_type' => 'H5',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/payment-url')->get([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'query' => [
    'sp_mchid'         => '12341234',
    'sub_mchid'        => '43214321',
    'application_type' => 'H5',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/payment-url']->get([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'query' => [
    'sp_mchid'         => '12341234',
    'sub_mchid'        => '43214321',
    'application_type' => 'H5',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sp_mchidstring服务商商户号
sub_mchidstring出资子商户号
employee_idstring微信授权关系ID
card_nostring企业支付额度卡卡号
expire_timestring链接失效时间
payment_urlstring跳转链接
application_typestring拉起付款码页面的企业应用类型
H5 | MINIPROGRAM 枚举值之一
mp_querystring小程序查询参数
mp_business_typestring小程序业务类型

参阅 官方文档

Published on the GitHub by TheNorthMemory