Hello Retail experts,
I have created a custom payment method (5001) in the back office and added a custom Default function by extending the enum. I have created a new payment method (5001) on the store using my custom payment method and I have configured my custom POS operation (5001) there.
I have also implemented a POS operation that adds a tender line to the cart with Tender type Id = 5001
I am getting the below exception while adding a tender line to the cart with my custom tender type Id (5001). When I use any other tender type Id (Cash or Other), I don't get any error and am able to complete the transaction.
I also tried to debug the request handler for SaveTenderLineRequest to get more information on the exception. I am getting below exception on CRT.
Below is the stack trace of CRT exception:
" at Microsoft.Dynamics.Commerce.Runtime.Services.PaymentManagerService.<ResolvePaymentService>d__12.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Dynamics.Commerce.Runtime.Services.PaymentManagerService.<AuthorizePayment>d__7.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.<Execute>d__48`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.<Execute>d__48`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Dynamics.Commerce.Runtime.Workflow.CartWorkflowHelper.<AddOrUpdateTenderLine>d__39.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Dynamics.Commerce.Runtime.Workflow.SaveTenderLineRequestHandler.<CalculateRequiredReasonCodesAndAddOrUpdateTenderLine>d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Dynamics.Commerce.Runtime.Workflow.SaveTenderLineRequestHandler.<CreateTenderLine>d__7.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Dynamics.Commerce.Runtime.Workflow.SaveTenderLineRequestHandler.<Process>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.<Execute>d__48`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.<Execute>d__48`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()\r\n at Contoso.ModernPosPackagingSample.CommerceRuntime.RequestHandlers.MyTest.<Execute>d__2.MoveNext()"
Any idea what else I am missing?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156