增加预订单回调处理,用于扩展信息,支付宝APP移除同步回调

This commit is contained in:
egzosn
2019-10-08 22:08:08 +08:00
parent ad7efdce9d
commit afc328c182

View File

@@ -67,6 +67,7 @@ public class AliPayService extends BasePayService<AliPayConfigStorage> {
*
* @return 请求地址
*/
@Override
public String getReqUrl(TransactionType transactionType) {
return payConfigStorage.isTest() ? DEV_REQ_URL : HTTPS_REQ_URL;
}
@@ -214,7 +215,6 @@ public class AliPayService extends BasePayService<AliPayConfigStorage> {
case APP:
bizContent.put(PASSBACK_PARAMS, order.getAddition());
bizContent.put(PRODUCT_CODE, "QUICK_MSECURITY_PAY");
orderInfo.put(RETURN_URL, payConfigStorage.getReturnUrl());
break;
case BAR_CODE:
case WAVE_CODE:
@@ -228,7 +228,8 @@ public class AliPayService extends BasePayService<AliPayConfigStorage> {
bizContent.put("timeout_express", DateUtils.minutesRemaining(order.getExpirationTime()) + "m");
}
orderInfo.put(BIZ_CONTENT, JSON.toJSONString(bizContent));
return orderInfo;
return preOrderHandler(orderInfo, order);
}
/**