Environment | Ucommerce 2.6.1+ |
Question/Problem description | Trying to checkout without payments covering entire order total results in a SecurityException |
Steps to reproduce | set a shippingMethod on a purchaseOrder that has a price create a payment call TransactionLibrary.ExecuteBasketPipeline call TransactionLibrary.Checkout |
Error message | [SecurityException: Payment insufficient to cover order total for OrderGuid 00000000-0000-0000-0000-000000000000. Please ensure that payments cover the entire value of the order before checking out. Payments made 88,00 Order total 100,00.] Ucommerce.Pipelines.Transactions.Baskets.Checkout.ValidatePaymentsMadeAgainstOrderTotalTask.Execute(PurchaseOrder subject) +636 Ucommerce.Pipelines.Pipeline`1.Execute(T subject) +379 |
Resolution | call TransactionLibrary.ExecuteBasketPipeline between adding a shippingMethod and creating the Payment to ensure the PurchaseOrder and Payment will have the updated order total. |
Payment insufficient to cover order tot Print
Modified on: Tue, 17 Aug, 2021 at 2:57 PM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.