private void PushPaymentReleaseAndUpdateSync(ShopifyTransaction transactionRecord) { try { // Workarounds for Acumatica bug that prevents storage of Payment Nbr // var acumaticaPayment = RetrievePaymentWithMissingId(transactionRecord); // Release the actual Payment // _paymentClient.ReleasePayment(acumaticaPayment.AcumaticaRefNbr, acumaticaPayment.AcumaticaDocType); _syncOrderRepository.PaymentIsReleased(acumaticaPayment.ShopifyTransactionMonsterId); _syncOrderRepository.ResetOrderErrorCount(transactionRecord.ShopifyOrderId); } catch (Exception ex) { _systemLogger.Error(ex); _logService.Log($"Encounter error syncing {transactionRecord.LogDescriptor()}"); _syncOrderRepository.IncreaseOrderErrorCount(transactionRecord.ShopifyOrderId); return; } }