Skip to main content
Solved

Payment Plugin - Credit Card - Value cannot be null. Parameter name: source

  • December 2, 2024
  • 3 replies
  • 65 views

Forum|alt.badge.img

Hello,

On my payment plugin I’m getting the error

Value cannot be null.
Parameter name: source

 at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
   at PX.Objects.Extensions.PaymentTransaction.PaymentTransactionAcceptFormGraph`2.GetTransByDoc(ICCPayment payment, IEnumerable`1 trans) in C:\build\code_repo\WebSites\Pure\PX.Objects\Extensions\PaymentTransaction\PaymentTransactionAcceptFormGraph.cs:line 1033
   at PX.Objects.Extensions.PaymentTransaction.PaymentTransactionAcceptFormGraph`2.<>c__DisplayClass29_0.<CheckPaymentTransaction>b__0(IEnumerable`1 i) in C:\build\code_repo\WebSites\Pure\PX.Objects\Extensions\PaymentTransaction\PaymentTransactionAcceptFormGraph.cs:line 617
   at PX.CCProcessingBase.RetryPolicy`1.DoExecute(Func`1 execAcion)
   at PX.CCProcessingBase.RetryPolicy`1.Execute(Func`1 execAcion)
   at PX.Objects.Extensions.PaymentTransaction.PaymentTransactionAcceptFormGraph`2.CheckPaymentTransaction(TPrimary doc) in C:\build\code_repo\WebSites\Pure\PX.Objects\Extensions\PaymentTransaction\PaymentTransactionAcceptFormGraph.cs:line 620
   at PX.Objects.Extensions.PaymentTransaction.PaymentTransactionAcceptFormGraph`2.DoValidateCCPayment(TPrimary doc) in C:\build\code_repo\WebSites\Pure\PX.Objects\Extensions\PaymentTransaction\PaymentTransactionAcceptFormGraph.cs:line 145

 

 

This happen only if the user start the payment and didn’t complete it, so the payment is already added and turned to  into pending processing status, but no transaction IDs were received because the user didn’t complete


How can we fix that error? on Auth.Net when you do the same the validate is working and the transaction is marked as doesn’t exists 

 

 

Best answer by safetynetweb

The issue was that GetUnsettledTransactions function implementaion was returning Null which was casuing the error.

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img
  • Author
  • Varsity III
  • 39 replies
  • December 3, 2024

This error is happening when trying to “Validate Card Payment”

 

 

 


Forum|alt.badge.img
  • Author
  • Varsity III
  • 39 replies
  • Answer
  • December 8, 2024

The issue was that GetUnsettledTransactions function implementaion was returning Null which was casuing the error.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2810 replies
  • December 9, 2024

Thank you for sharing your solution with the community ​@safetynetweb!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings