From 5bd43478c72b7c1c0c00c989a777f74518281670 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 1 Oct 2019 08:19:01 -0400 Subject: [PATCH] handle reversed transactions --- src/Billing/Controllers/PayPalController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Billing/Controllers/PayPalController.cs b/src/Billing/Controllers/PayPalController.cs index e627925330..63536101ae 100644 --- a/src/Billing/Controllers/PayPalController.cs +++ b/src/Billing/Controllers/PayPalController.cs @@ -182,7 +182,7 @@ namespace Bit.Billing.Controllers // Catch foreign key violations because user/org could have been deleted. catch(SqlException e) when(e.Number == 547) { } } - else if(ipnTransaction.PaymentStatus == "Refunded") + else if(ipnTransaction.PaymentStatus == "Refunded" || ipnTransaction.PaymentStatus == "Reversed") { var refundTransaction = await _transactionRepository.GetByGatewayIdAsync( GatewayType.PayPal, ipnTransaction.TxnId);