All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.guanmengyuan.spring.ex.alipay.service.AliPayService Maven / Gradle / Ivy

There is a newer version: 3.3.3.2
Show newest version
package com.guanmengyuan.spring.ex.alipay.service;

import java.util.List;

import com.alipay.api.AlipayClient;
import com.guanmengyuan.spring.ex.alipay.config.AliPayProperties;

public interface AliPayService {
    /**
     * 切换appid对应的客户端
     *
     * @param appId appid
     * @return 自定义sdk配置
     */
    AlipayClient switchOverApiClient(String appId);

    /**
     * 初始化支付宝配置
     *
     * @param configs 配置类
     */
    void initFactories(List configs);

    /**
     * 获取支付宝用户openId
     *
     * @param authCode 认证code
     * @param appId    小程序id
     * @return 用户id
     */
    String getOpenId(String authCode, String appId);

    String getPhoneNumber(String phoneCode, String appId);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy