public async Task CancelPayment(CancelPaymentDto input) { var payment = await _subscriptionPaymentRepository.GetByGatewayAndPaymentIdAsync( input.Gateway, input.PaymentId ); payment.SetAsCancelled(); }
/// <summary> /// 取消支付 /// </summary> /// <param name="input"></param> /// <returns></returns> public async Task CancelPayment(CancelPaymentDto input) { await Task.FromResult(0); }