new_naweigete/crmeb/services/pay/PayInterface.php
2025-03-12 10:47:34 +08:00

78 lines
2.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
namespace crmeb\services\pay;
/**
* 支付接口类
* Interface PayInterface
* @package crmeb\services\pay
*/
interface PayInterface
{
/**
* 设置支付类型
* @param string $type 支付类型
* @return $this
*/
public function setPayType(string $type);
/**
* 创建支付
* @param string $orderId 订单号
* @param string $totalFee 支付金额
* @param string $attach 回调内容
* @param string $body 支付body
* @param string $detail 详情
* @param string $tradeType 支付类型
* @param array $options 其他参数
* @return mixed
*/
public function create(string $orderId, string $totalFee, string $attach, string $body, string $detail, array $options = []);
/**
* 企业支付到零钱
* @param string $openid openid
* @param string $orderId 订单id
* @param string $amount 支付金额
* @param array $options 其他参数
* @return mixed
*/
public function merchantPay(string $openid, string $orderId, string $amount, array $options = []);
/**
* 退款
* @param string $outTradeNo 退款单号
* @param string $totalAmount 退款金额
* @param string $refund_id 退款
* @param array $options 其他参数
* @return mixed
*/
public function refund(string $outTradeNo, array $options = []);
/**
* 查询订单
* @param string $outTradeNo 退款单号
* @param string $outRequestNo 支付商户单号
* @param array $other 其他参数
* @return mixed
*/
public function queryRefund(string $outTradeNo, string $outRequestNo, array $other = []);
/**
* 支付回调
* @return mixed
*/
public function handleNotify();
}