public async Task CancelPayment(CancelPaymentDto input)
        {
            var payment = await _subscriptionPaymentRepository.GetByGatewayAndPaymentIdAsync(
                input.Gateway,
                input.PaymentId
                );

            payment.SetAsCancelled();
        }
Example #2
0
 /// <summary>
 /// 取消支付
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task CancelPayment(CancelPaymentDto input)
 {
     await Task.FromResult(0);
 }