Commit bbd52173 authored by dingzhiwei's avatar dingzhiwei
Browse files

修复paypal支付查询问题

parent c3456cbb
...@@ -5,6 +5,8 @@ import com.jeequan.jeepay.core.entity.PayOrder; ...@@ -5,6 +5,8 @@ import com.jeequan.jeepay.core.entity.PayOrder;
import com.jeequan.jeepay.pay.channel.IPayOrderQueryService; import com.jeequan.jeepay.pay.channel.IPayOrderQueryService;
import com.jeequan.jeepay.pay.model.MchAppConfigContext; import com.jeequan.jeepay.pay.model.MchAppConfigContext;
import com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg; import com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg;
import com.jeequan.jeepay.pay.service.ConfigContextQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**
...@@ -16,13 +18,17 @@ import org.springframework.stereotype.Service; ...@@ -16,13 +18,17 @@ import org.springframework.stereotype.Service;
*/ */
@Service @Service
public class PppayPayOrderQueryService implements IPayOrderQueryService { public class PppayPayOrderQueryService implements IPayOrderQueryService {
@Override @Override
public String getIfCode() { public String getIfCode() {
return CS.IF_CODE.PPPAY; return CS.IF_CODE.PPPAY;
} }
@Autowired
private ConfigContextQueryService configContextQueryService;
@Override @Override
public ChannelRetMsg query(PayOrder payOrder, MchAppConfigContext mchAppConfigContext) throws Exception { public ChannelRetMsg query(PayOrder payOrder, MchAppConfigContext mchAppConfigContext) throws Exception {
return mchAppConfigContext.getPaypalWrapper().processOrder(null, payOrder); return configContextQueryService.getPaypalWrapper(mchAppConfigContext).processOrder(null, payOrder);
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment