|
|
|
@ -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
|
|
|
|
|