package com.jojubanking.boot.framework.pay.config;

import com.jojubanking.boot.framework.pay.core.client.PayClientFactory;
import com.jojubanking.boot.framework.pay.core.client.impl.PayClientFactoryImpl;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 支付配置类
 *
 * @author TW
 */
@Configuration
@EnableConfigurationProperties(PayProperties.class)
public class JojuPayAutoConfiguration {

    @Bean
    public PayClientFactory payClientFactory() {
        return new PayClientFactoryImpl();
    }

}
