From 9cb7a0caaf2d22082e20671200e6bc58c5d6ced1 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 1 Feb 2019 23:29:34 -0500 Subject: [PATCH] remove credit --- src/Billing/Controllers/PayPalController.cs | 2 +- src/Billing/Utilities/PayPalClient.cs | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Billing/Controllers/PayPalController.cs b/src/Billing/Controllers/PayPalController.cs index 0403d02735..2acf1f2709 100644 --- a/src/Billing/Controllers/PayPalController.cs +++ b/src/Billing/Controllers/PayPalController.cs @@ -70,7 +70,7 @@ namespace Bit.Billing.Controllers CreationDate = sale.CreateTime, OrganizationId = ids.Item1, UserId = ids.Item2, - Type = sale.GetCreditFromCustom() ? TransactionType.Credit : TransactionType.Charge, + Type = TransactionType.Charge, Gateway = GatewayType.PayPal, GatewayId = sale.Id, PaymentMethodType = PaymentMethodType.PayPal, diff --git a/src/Billing/Utilities/PayPalClient.cs b/src/Billing/Utilities/PayPalClient.cs index df40df9360..0e203df57c 100644 --- a/src/Billing/Utilities/PayPalClient.cs +++ b/src/Billing/Utilities/PayPalClient.cs @@ -218,11 +218,6 @@ namespace Bit.Billing.Utilities return new Tuple(orgId, userId); } - - public bool GetCreditFromCustom() - { - return Custom.Contains("credit:true"); - } } public class AmountInfo