package com.crm.pay.service;

import com.crm.pay.entity.callback.PayPagaCallbackEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;

/**
 * @program:
 * @description:
 * @author: houn
 * @create: 2024-04-20 18:22
 */
public interface PayPagaService {

    /**
     * 支付
     *
     * @param entity
     * @return
     * @throws ServiceException
     */
    String pay(FinanceDepositAddEntity entity) throws Exception;

    /**
     * 回调
     *
     * @param callbackEntity
     * @throws ServiceException
     */
    void callback(PayPagaCallbackEntity callbackEntity) throws Exception;
}
