From ba04e9ab0d174710786955fa4664efda23940651 Mon Sep 17 00:00:00 2001 From: yixian Date: Tue, 24 Nov 2020 14:47:22 +1100 Subject: [PATCH] document add native jsapi --- src/document/openapi/cn/document.yml | 43 ++++++++++++++++++++++++++++ src/document/openapi/en/document.yml | 43 ++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/src/document/openapi/cn/document.yml b/src/document/openapi/cn/document.yml index fccc8a66a..110937038 100644 --- a/src/document/openapi/cn/document.yml +++ b/src/document/openapi/cn/document.yml @@ -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下单 diff --git a/src/document/openapi/en/document.yml b/src/document/openapi/en/document.yml index e58001d0d..e575312b8 100644 --- a/src/document/openapi/en/document.yml +++ b/src/document/openapi/en/document.yml @@ -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