package cn.iocoder.yudao.module.payment.service;

import cn.iocoder.yudao.util.WechatPayRequest;

import javax.annotation.Resource;
import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SignatureException;
import java.util.Map;

public interface WxPayService {
    Map<String,Object> transactions(String type, Long orderId) throws SignatureException, NoSuchAlgorithmException, InvalidKeyException, IOException;

    /**
     * 扫码支付
     * @param orderId
     * @return
     * @throws Exception
     */
    Map<String, Object> nativeTransaction(Long orderId) throws Exception;
}
