Skip to content

Commit

Permalink
跨境∙H5权限
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Jan 21, 2024
1 parent 71f42e5 commit 5945fe1
Show file tree
Hide file tree
Showing 17 changed files with 1,073 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
| 跨境∙退款 | ✔️ | ✔️ |
| 跨境∙分账 | ✔️ | ✔️ |
| 跨境∙代扣 | ✔️ | ✔️ |
| 跨境∙H5权限 | | ✔️ |
| 沙箱环境 | ✔️ | ✔️ |
| APIv2∙人脸支付 | | ✔️ |
| APIv2∙基础支付 | ✔️ | ✔️ |
Expand Down
13 changes: 12 additions & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ info:
整理自[官方文档中心](https://pay.weixin.qq.com/wiki/doc/apiv3/index.shtml)
本[项目/工具地址](https://github.com/TheNorthMemory/wechatpay-openapi)
**访问第一次加载比较慢,请耐心等待大约1-2分钟不等(小文件下载比较多)。**
version: 0.15.20
version: 0.15.21
schemes:
- https
consumes:
Expand Down Expand Up @@ -98,6 +98,7 @@ tags:
- name: 跨境∙退款
- name: 跨境∙分账
- name: 跨境∙代扣
- name: 跨境∙H5权限
- name: 沙箱环境
- name: APIv2∙人脸支付
- name: APIv2∙基础支付
Expand Down Expand Up @@ -644,6 +645,16 @@ paths:
$ref: ./v3/global/customs/verify-certificate.yaml
/v3/global/merchant-storage/file/upload:
$ref: ./v3/global/merchant-storage/file/upload.yaml
/v3/global/merchant/h5/permission/{sub_mchid}:
$ref: ./v3/global/merchant/h5/permission/{sub_mchid}.yaml
/v3/global/merchant/h5/permission/applications:
$ref: ./v3/global/merchant/h5/permission/applications.yaml
/v3/global/merchant/h5/permission/applications/{applyment_id}:
$ref: ./v3/global/merchant/h5/permission/applications/{applyment_id}.yaml
/v3/global/merchant/h5/permission/domain/applications:
$ref: ./v3/global/merchant/h5/permission/domain/applications.yaml
/v3/global/merchant/h5/permission/domain/applications/{applyment_id}:
$ref: ./v3/global/merchant/h5/permission/domain/applications/{applyment_id}.yaml
/v3/global/merchants:
$ref: ./v3/global/merchants.yaml
/v3/global/merchants/{sub_mchid}:
Expand Down
164 changes: 164 additions & 0 deletions docs/v3/global/merchant/h5/permission/applications.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
post:
x-version:
- 2023.12.05
x-role:
- 从业机构(支付机构)
tags:
- 跨境∙H5权限
summary: 创建H5支付权限申请单
description: 商户可以通过调用此接口为子商户申请H5支付权限。调用之前需要先签署批量提交协议。如果限额类型(transaction_limit_type)选择不限额度(NO_LIMIT),则在此申请单创建完成后,系统会未子商户自动创建解除限额申请单。发起解除限额申请时,需要确保商户已经获得了普通限额的支付权限。 [官方文档](https://pay.weixin.qq.com/wiki/doc/api_external/ch/apis/chapter4_4_1.shtml)
parameters:
- name: _
in: body
required: true
schema:
type: object
required:
- sub_mchid
- domains
- website_url
properties:
business_description:
type: string
description: 公司介绍和业务描述
example: 腾讯于1998年11月成立,是一家互联网公司,通过技术丰富互联网用户的生活,助力企业数字化升级。我们的使命是“用户为本 科技向善”
sub_mchid:
type: string
description: 子商户号
example: '2491935631'
domains:
type: array
description: H5支付域名
items:
type: string
example: ["qq.com"]
company_register_cert:
type: string
format: MediaId
description: 公司注册资质证书
example: 6uqyGjvHzOhsLleGFQVRF
transaction_limit_type:
type: string
description: 限额类型
example: UN_LAUNCHED_WEBSITE_LIMIT
enum:
- UN_LAUNCHED_WEBSITE_LIMIT
- NORMAL_LIMIT
- NO_LIMIT
website_business_page_pics:
type: array
description: 经营网址商业页面截图
items:
type: string
format: MediaId
example: ["6uqyGjvHzOhsLleGFQVRF"]
website_homepage_pics:
type: array
description: 经营网址首页截图
items:
type: string
format: MediaId
example: ["6uqyGjvHzOhsLleGFQVRF"]
website_state:
type: string
description: 子商户经营网址状态
example: HAS_LAUNCHED
enum:
- HAS_LAUNCHED
- UN_LAUNCHED
website_url:
type: string
description: 子商户H5经营网址
example: https://qq.com
notify_url:
type: string
description: 商户提供的审核结果回调接口
example: https://pay.weixin.qq.com/wxpay/pay.action
applyment_type:
type: string
description: 申请单类型
example: APPLY_FOR_PAYMENT_AUTHORITY
enum:
- APPLY_FOR_PAYMENT_AUTHORITY
- APPLY_FOR_RELIEVE_LIMITED
responses:
'200':
schema:
type: object
required:
- sub_mchid
- domains
- transaction_limit_type
- website_state
- website_url
- applyment_id
- applyment_state
- applyment_type
properties:
sub_mchid:
type: string
description: 子商户号
example: '2491935631'
domains:
type: array
description: H5支付域名
example: '["qq.com"]'
business_description:
type: string
description: 公司介绍和业务描述
example: 腾讯于1998年11月成立,是一家互联网公司,通过技术丰富互联网用户的生活,助力企业数字化升级。我们的使命是“用户为本 科技向善”
transaction_limit_type:
type: string
description: 限额类型
example: UN_LAUNCHED_WEBSITE_LIMIT
enum:
- UN_LAUNCHED_WEBSITE_LIMIT
- NORMAL_LIMIT
- NO_LIMIT
company_register_cert:
type: string
format: MediaId
description: 公司注册资质证书
example: 6uqyGjvHzOhsLleGFQVRF
website_business_page_pics:
type: array
description: 经营网址商业页面截图
items:
type: string
format: MediaId
example: ["6uqyGjvHzOhsLleGFQVRF"]
website_homepage_pics:
type: array
description: 经营网址首页截图
items:
type: string
format: MediaId
example: ["6uqyGjvHzOhsLleGFQVRF"]
website_state:
type: string
description: 子商户经营网址状态
example: HAS_LAUNCHED
website_url:
type: string
description: 子商户H5经营网址
example: https://qq.com
applyment_id:
type: integer
description: 申请单号
example: 100000
audit_reject_detail:
type: string
description: 驳回原因
example: 商户证书不符合要求
applyment_state:
type: string
description: 申请单状态
example: PENDING
applyment_type:
type: string
description: 申请单类型
example: APPLY_FOR_PAYMENT_AUTHORITY
notify_url:
type: string
description: 商户提供的审核结果回调接口
example: https://pay.weixin.qq.com/wxpay/pay.action
Loading

0 comments on commit 5945fe1

Please sign in to comment.