mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
5.0
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package com.gitee.sop.payment.impl;
|
||||
|
||||
import com.gitee.sop.payment.open.OpenPayment;
|
||||
import com.gitee.sop.payment.open.req.AlipayTradeWapPayRequest;
|
||||
import com.gitee.sop.payment.open.resp.AlipayTradeWapPayResponse;
|
||||
import com.gitee.sop.payment.open.req.PayTradeWapPayRequest;
|
||||
import com.gitee.sop.payment.open.resp.PayTradeWapPayResponse;
|
||||
import org.apache.dubbo.config.annotation.DubboService;
|
||||
|
||||
import java.util.UUID;
|
||||
@@ -17,9 +17,9 @@ import java.util.UUID;
|
||||
public class OpenPaymentImpl implements OpenPayment {
|
||||
|
||||
@Override
|
||||
public AlipayTradeWapPayResponse tradeWapPay(AlipayTradeWapPayRequest request) {
|
||||
AlipayTradeWapPayResponse alipayTradeWapPayResponse = new AlipayTradeWapPayResponse();
|
||||
alipayTradeWapPayResponse.setPageRedirectionData(UUID.randomUUID().toString());
|
||||
return alipayTradeWapPayResponse;
|
||||
public PayTradeWapPayResponse tradeWapPay(PayTradeWapPayRequest request) {
|
||||
PayTradeWapPayResponse payTradeWapPayResponse = new PayTradeWapPayResponse();
|
||||
payTradeWapPayResponse.setPageRedirectionData(UUID.randomUUID().toString());
|
||||
return payTradeWapPayResponse;
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package com.gitee.sop.payment.open;
|
||||
|
||||
import com.gitee.sop.payment.open.req.AlipayTradeWapPayRequest;
|
||||
import com.gitee.sop.payment.open.resp.AlipayTradeWapPayResponse;
|
||||
import com.gitee.sop.payment.open.req.PayTradeWapPayRequest;
|
||||
import com.gitee.sop.payment.open.resp.PayTradeWapPayResponse;
|
||||
import com.gitee.sop.support.annotation.Open;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
@@ -15,13 +15,13 @@ import io.swagger.annotations.ApiOperation;
|
||||
public interface OpenPayment {
|
||||
|
||||
@ApiOperation(
|
||||
value = "alipay.trade.wap.pay(手机网站支付接口2.0)",
|
||||
notes = "该接口是页面跳转接口,用于生成用户访问支付宝的跳转链接。" +
|
||||
"请在服务端执行支付宝SDK中pageExecute方法,读取响应中的body()结果。" +
|
||||
"该结果用于跳转到支付宝页面,返回到用户浏览器渲染或重定向跳转到支付宝页面。" +
|
||||
value = "手机网站支付接口2.0",
|
||||
notes = "该接口是页面跳转接口,用于生成用户访问跳转链接。" +
|
||||
"请在服务端执行SDK中pageExecute方法,读取响应中的body()结果。" +
|
||||
"该结果用于跳转到页面,返回到用户浏览器渲染或重定向跳转到页面。" +
|
||||
"具体使用方法请参考 <a href=\"https://torna.cn\" target=\"_blank\">接入指南</a>"
|
||||
)
|
||||
@Open(value = "alipay.trade.wap.pay", version = "2.0")
|
||||
AlipayTradeWapPayResponse tradeWapPay(AlipayTradeWapPayRequest request);
|
||||
@Open(value = "pay.trade.wap.pay", version = "2.0")
|
||||
PayTradeWapPayResponse tradeWapPay(PayTradeWapPayRequest request);
|
||||
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@ import java.util.List;
|
||||
* https://opendocs.alipay.com/open/29ae8cb6_alipay.trade.wap.pay?pathHash=1ef587fd&ref=api&scene=21
|
||||
*/
|
||||
@Data
|
||||
public class AlipayTradeWapPayRequest {
|
||||
public class PayTradeWapPayRequest {
|
||||
|
||||
|
||||
@ApiModelProperty(value = "商户网站唯一订单号", required = true, example = "70501111111S001111119")
|
@@ -7,7 +7,7 @@ import lombok.Data;
|
||||
* @author 六如
|
||||
*/
|
||||
@Data
|
||||
public class AlipayTradeWapPayResponse {
|
||||
public class PayTradeWapPayResponse {
|
||||
|
||||
@ApiModelProperty(
|
||||
value = "用于跳转支付宝页面的信息,POST和GET方法生成内容不同:使用POST方法执行,结果为html form表单,在浏览器渲染即可;使用GET方法会得到支付宝URL,需要打开或重定向到该URL。建议使用POST方式。具体使用方法请参考",
|
Reference in New Issue
Block a user