diff --git a/Nixtus.Plugin.Payments.Nmi/NmiPaymentProcessor.cs b/Nixtus.Plugin.Payments.Nmi/NmiPaymentProcessor.cs index fe597fb..9828f22 100644 --- a/Nixtus.Plugin.Payments.Nmi/NmiPaymentProcessor.cs +++ b/Nixtus.Plugin.Payments.Nmi/NmiPaymentProcessor.cs @@ -219,6 +219,10 @@ public ProcessPaymentResult ProcessPayment(ProcessPaymentRequest processPaymentR { _genericAttributeService.SaveAttribute(customer, Constants.CustomerVaultIdKey, customer.CustomerGuid.ToString()); } + + // remove custom values so that they don't get saved on the order and also won't display + // on the generated PDF + processPaymentRequest.CustomValues = new Dictionary(); } // transaction declined or error - responseValue = 2 or 3 else @@ -525,6 +529,10 @@ public ProcessPaymentResult ProcessRecurringPayment(ProcessPaymentRequest proces { _genericAttributeService.SaveAttribute(customer, Constants.CustomerVaultIdKey, customer.CustomerGuid.ToString()); } + + // remove custom values so that they don't get saved on the order and also won't display + // on the generated PDF + processPaymentRequest.CustomValues = new Dictionary(); } // transaction declined or error - responseValue = 2 or 3 else