WxPayService.java 1.21 KB
Newer Older
licc's avatar
licc committed
1 2 3 4
package cn.wisenergy.service.app;

import cn.wisenergy.common.utils.R;
import cn.wisenergy.model.dto.PayPageDto;
licc's avatar
licc committed
5
import cn.wisenergy.model.dto.PayQueryDto;
licc's avatar
licc committed
6

licc's avatar
licc committed
7 8
import javax.crypto.IllegalBlockSizeException;
import java.io.IOException;
licc's avatar
licc committed
9 10 11 12 13 14 15 16 17
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SignatureException;
import java.security.spec.InvalidKeySpecException;

/**
 * @author 86187
 */
licc's avatar
licc committed
18
public interface WxPayService {
licc's avatar
licc committed
19 20 21 22 23 24 25

    /**
     * 微行支付接口
     * @param payPageDto 入参
     * @return
     */
    R<String> wxPay(PayPageDto payPageDto) throws UnsupportedEncodingException, NoSuchAlgorithmException, SignatureException, InvalidKeySpecException, InvalidKeyException;
licc's avatar
licc committed
26 27 28 29 30 31 32 33 34 35 36 37


    /**
     * 微信支付-交易查询
     * @param payQueryDto 入参
     * @return
     */
    R<String> queryWx(PayQueryDto payQueryDto) throws UnsupportedEncodingException, NoSuchAlgorithmException, SignatureException, InvalidKeySpecException, InvalidKeyException;


    R<String> wx_Pay(PayPageDto payPageDto) throws IOException, NoSuchAlgorithmException, SignatureException, InvalidKeySpecException, InvalidKeyException, IllegalBlockSizeException;

licc's avatar
licc committed
38
}