document add native jsapi

master
yixian 4 years ago
parent ad10c558d1
commit ba04e9ab0d

@ -418,6 +418,49 @@ paths:
text/html:
schema:
type: string
/gateway/partners/{partner_code}/native_jsapi/{partner_order_id}:
put:
summary: 原生JSSDK下单
description: 原生JSSDK允许商户在自己的微商城页面上直接拉起微信/支付宝支付,拉起方式详见微信/支付宝官方文档
x-sort-order: 0
parameters:
- name: partner_code
in: path
required: true
- name: partner_order_id
in: path
required: true
tags:
- JSAPI
requestBody:
content:
application/json:
schema:
allOf:
- $ref: 'components_order.yml#/orderWithChannel'
- type: object
required:
- customer_id
properties:
appid:
type: string
description: 商户公众号appid接入微信支付必填支付宝不需要
customer_id:
type: string
description: 商户公众号获取的用户openid支付宝需要获取userid
responses:
200:
description: Order
content:
application/json:
schema:
allOf:
- $ref: 'components_order.yml#/orderBasicResponse'
- type: object
properties:
sdk_params:
type: string
description: 序列化后的json字符串直接提交给微商城页面端作为参数发起支付
/h5_payment/partners/{partner_code}/orders/{partner_order_id}:
put:
summary: MobileH5下单

@ -427,6 +427,49 @@ paths:
text/html:
schema:
type: string
/gateway/partners/{partner_code}/native_jsapi/{partner_order_id}:
put:
summary: Native JSSDK order
description: Native JSSDK allows merchants to open Wechat/Alipay cashier view. For details please check Alipay/Wechat documents
x-sort-order: 0
parameters:
- name: partner_code
in: path
required: true
- name: partner_order_id
in: path
required: true
tags:
- JSAPI
requestBody:
content:
application/json:
schema:
allOf:
- $ref: 'components_order.yml#/orderWithChannel'
- type: object
required:
- customer_id
properties:
appid:
type: string
description: Wechat official account appid, required for Wechat
customer_id:
type: string
description: Customer openid acquired by merchant's wechat official account or userid from Alipay
responses:
200:
description: Order
content:
application/json:
schema:
allOf:
- $ref: 'components_order.yml#/orderBasicResponse'
- type: object
properties:
sdk_params:
type: string
description: serialized json parameters. which can be take as parameter while opening cashier view in Wechat/Alipay
/h5_payment/partners/{partner_code}/orders/{partner_order_id}:
put:
summary: Create MobileH5 order

Loading…
Cancel
Save