/// <summary> /// Fetches the invoice from the incoming request. /// </summary> /// <param name="onlinePayment"></param> /// <exception cref="PaymentTokenProviderException"></exception> /// <exception cref="InvoiceNotFoundException"></exception> public static IPaymentFetchResult Fetch(this IOnlinePayment onlinePayment) => onlinePayment.FetchAndStoreAsync().GetAwaiter().GetResult();