logger->debug('Premium payment processing with fee: ' . $fee); return $this->payment->pay($amount + $fee); } /** * @param float $amount * @return array */ public function processRefund(float $amount): array { $fee = $amount * 0.01; // 1%手续费 $this->logger->debug('Premium payment processing with refund: ' . $fee); return $this->payment->refund($amount - $fee); } }