package org.springblade.yeePay.listener;

import com.alibaba.fastjson.JSONObject;
import org.springblade.yeePay.event.GatewayEvent;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;


@Component
public class GatewayNotifyListener {

	/**
	 * 	网关充值回调业务逻辑处理
	 * @param  gatewayEvent 回调事件
	 * */
	@EventListener
	@Async
	@Transactional
	public void notifyBusiness(GatewayEvent gatewayEvent){
		JSONObject decryptData = gatewayEvent.getDecryptData(); //获取回调信息，解密后的数据

	}



}
