mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-06 20:47:46 +00:00
feat 支付订单联调
This commit is contained in:
@@ -69,7 +69,7 @@ public class PaySyncService {
|
||||
}
|
||||
// 如果不是异步支付, 直接返回返回
|
||||
if (!payOrder.isAsyncPay()){
|
||||
return new PaySyncResult().setSuccess(true).setRepair(false);
|
||||
return new PaySyncResult().setSuccess(false).setRepair(false).setErrorMsg("订单没有异步支付方式,不需要同步");
|
||||
}
|
||||
// 执行订单同步逻辑
|
||||
return this.syncPayOrder(payOrder);
|
||||
|
@@ -16,4 +16,19 @@ import lombok.experimental.Accessors;
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "支付订单关联通道信息")
|
||||
public class PayOrderChannelDto extends BaseDto {
|
||||
|
||||
@Schema(description = "支付id")
|
||||
private Long paymentId;
|
||||
|
||||
@Schema(description = "通道")
|
||||
private String channel;
|
||||
|
||||
@Schema(description = "支付方式")
|
||||
private String payWay;
|
||||
|
||||
@Schema(description = "异步支付方式")
|
||||
private boolean async;
|
||||
|
||||
@Schema(description = "金额")
|
||||
private Integer amount;
|
||||
}
|
||||
|
@@ -6,6 +6,8 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 支付订单扩展信息
|
||||
* @author xxm
|
||||
@@ -16,4 +18,48 @@ import lombok.experimental.Accessors;
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "支付订单扩展信息")
|
||||
public class PayOrderExtraDto extends BaseDto {
|
||||
|
||||
/** 描述 */
|
||||
@Schema(description = "描述")
|
||||
private String description;
|
||||
|
||||
/** 支付终端ip */
|
||||
@Schema(description = "支付终端ip")
|
||||
private String clientIp;
|
||||
|
||||
/** 是否不需要异步通知,以最后一次为准 */
|
||||
@Schema(description = "是否不需要异步通知")
|
||||
private boolean notNotify;
|
||||
|
||||
/** 异步通知地址 */
|
||||
@Schema(description = "异步通知地址,以最后一次为准")
|
||||
private String notifyUrl;
|
||||
|
||||
/** 签名类型 */
|
||||
@Schema(description = "签名类型")
|
||||
private String signType;
|
||||
|
||||
/** 签名,以最后一次为准 */
|
||||
@Schema(description = "签名")
|
||||
private String sign;
|
||||
|
||||
/** 商户扩展参数,回调时会原样返回 */
|
||||
@Schema(description = "商户扩展参数")
|
||||
private String attach;
|
||||
|
||||
/** API版本号 */
|
||||
@Schema(description = "API版本号")
|
||||
private String apiVersion;
|
||||
|
||||
/** 请求时间,时间戳转时间, 以最后一次为准 */
|
||||
@Schema(description = "请求时间,传输时间戳,以最后一次为准")
|
||||
private LocalDateTime reqTime;
|
||||
|
||||
/** 错误码 */
|
||||
@Schema(description = "错误码")
|
||||
private String errorCode;
|
||||
|
||||
/** 错误信息 */
|
||||
@Schema(description = "错误信息")
|
||||
private String errorMsg;
|
||||
}
|
||||
|
Reference in New Issue
Block a user