help
Root Question Message
try
{
Refund refund = null;
switch (frameworkEnum)
{
case PaymentFramework.Invoice:
var invoice = _invoiceService.Get(bill.StripeInvoiceId);
//method exits on next line
refund = _refundService.Create(new()
{
Charge = invoice.ChargeId,
Reason = $"Seller chose to refund order {order.Id}"
});
break;
case PaymentFramework.Intents:
// doesn't matter
break;
default:
break;
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
/close
to close the post if you're happy to close it.