pay($data, $type); } /** * 回调 * * @param string $way 支付方式类型 * @param string $data 数据 * * @return bool|void * @throws \Exception */ public static function makeNotify($way, $data) { $payment = self::createPayment($way); return $payment->notify($data); } /** * 查询订单 * @param string $way 支付方式类型 * * @return void * @throws \Exception */ public static function makeQuery($way, $data) { $payment = self::createPayment($way); return $payment->query($data); } // 退款 public static function makeRefund($way, $data) { $payment = self::createPayment($way); return $payment->refund($data); } /** * 支付回调通知返回 * * @param string $way 支付方式标识 * @param string $returnType 状态标识: success/fail * * @return string * @throws \Exception */ public static function makeReturnNotify($way, $returnType) { $payment = self::createPayment($way); $result = $payment->returnNotify($returnType); log_message('## '.$way.' - 回调返回: '. $returnType, 'log', LOG_PATH . 'PayNotify/'); return $result; } }