# Cart validation error: 'The selected payment method is no longer supported, please review your order.'

**URL:** <https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856>\
**Category:** Questions\
**Tags:** litium-8\
**Created:** [February 20, 2023, 10:52am UTC](https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856 "2023-02-20T10:52:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreeanenciu](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@andreeanenciu](https://forum.litium.com/u/andreeanenciu)\
**Post date:** [February 20, 2023, 10:52am UTC](https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856/1 "2023-02-20T10:52:26Z")

</div>

We are having an issue in one of our projects when the customers are placing an order in the checkout and they have several windows open in different channels, then they get a validation error message: _“Validation error, Cart: ‘The selected payment method is no longer supported, please review your order’”._  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/f330394caaadea34851b9901f50401b9d5956d90.png)

I checked in our logs and the error happens in the method: Litium.Accelerator.Mvc.Controllers.Api.CheckoutController.PlaceOrder(CheckoutViewModel model).  
And it looks like it is caused by the fact that _“OrderPaymentLinks”:[]_ is empty.

We had the same issue in Litium version 8.5.1, so we have been in contact with Litium before about it. We got the information that the issue should be solved in Litium version 8.7.0 in this bug [https://docs.litium.com/support/bugs/bug\_details?id=62246](https://docs.litium.com/support/bugs/bug_details?id=62246). But the issue is still there after the update to Litium version 8.7.2.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/330ecbfd0e8d9a88e599c2341aeb5a778a14cbcc.png)

Do you know why we still get this issue?  
How should we solve it?

Litium version: _[8.7.2]_

---

<div class="post-metadata">

**Author:** ![utku](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/utku/32/62_2.png) [@utku](https://forum.litium.com/u/utku)\
**Post date:** [February 20, 2023, 12:56pm UTC](https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856/2 "2023-02-20T12:56:45Z")

</div>

Hi,  
“the customers are placing an order in the checkout and they have several windows open in different channels”. This one is a new information about this issue.

There are not different carts for each channel. Information in the cart is updated when you visit the channel. So if you are at the checkout page and you visit another channel before you place the order it is not strange that you get the error since the cart is updated with the payment methods of the newly visited channel.

---

<div class="post-metadata">

**Author:** ![andreeanenciu](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@andreeanenciu](https://forum.litium.com/u/andreeanenciu)\
**Post date:** [February 20, 2023, 1:22pm UTC](https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856/3 "2023-02-20T13:22:00Z")

</div>

But the customer has only one payment method on all channels. Should the payment method information be the same?  
And why is _“OrderPaymentLinks”:[]_ empty?

---

<div class="post-metadata">

**Author:** ![andreeanenciu](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@andreeanenciu](https://forum.litium.com/u/andreeanenciu)\
**Post date:** [February 21, 2023, 7:16am UTC](https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856/4 "2023-02-21T07:16:28Z")

</div>

We have a method that checks that the right channel and countries are set in the cart context when we place the order

```auto
 var routeRequestLookupInto = _routeRequestLookupInfoAccessor.RouteRequestLookupInfo;
            var channel = routeRequestLookupInto.Channel;

            if (cartContext.ChannelSystemId != channel.SystemId)
            {
                await cartContext.SelectChannelAsync(new SelectChannelArgs
                {
                    ChannelSystemId = channel.SystemId
                });

                //if cart has no country then using the first country link of request lookup channel
                if (string.IsNullOrEmpty(cartContext.CountryCode))
                {
                    var countryId = channel.CountryLinks.FirstOrDefault()?.CountrySystemId;
                    if (countryId.HasValue)
                    {
                        var countryCode = _countryService.Get(countryId.Value)?.Id;
                        if (countryCode is object)
                        {
                            await cartContext.SelectCountryAsync(new SelectCountryArgs
                            {
                                CountryCode = countryCode
                            });
                        }
                    }
                }

                cartContext = HttpContext.GetCartContext();

```

And as I said before, all channels use the same payment method.

Should the payment method information be the same in that case?  
Why is _“OrderPaymentLinks”:[]_ empty?  
Do we net to reset the payment method again when "_OrderPaymentLinks”=[]_ ?

---

<div class="post-metadata">

**Author:** ![Spotonkastebo](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/spotonkastebo/32/717_2.png) [@Spotonkastebo](https://forum.litium.com/u/Spotonkastebo)\
**Post date:** [February 21, 2023, 11:38am UTC](https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856/5 "2023-02-21T11:38:43Z")

</div>

If using klarna you essentially need a new session if you want to switch country. there should be code in the accelerator to essentially clear the cart and then add the items you had before into a new cart.  
It looks like changing country and customertype (person/Organization) is not allowed if done from litium.

But if this i related to your issue I not sure. Working with different channels on same domain in litium is lots of work.

---

<div class="post-metadata">

**Author:** ![andreeanenciu](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@andreeanenciu](https://forum.litium.com/u/andreeanenciu)\
**Post date:** [February 22, 2023, 7:40am UTC](https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856/6 "2023-02-22T07:40:51Z")

</div>

The customer is only using Direct Pay as a payment, so no Klarna there.  
I do not think that is the issue. The cart is missing the OrderPaymentLinks (read only).

---

<div class="post-metadata">

**Author:** ![adam.clettborn](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/adam.clettborn/32/956_2.png) [@adam.clettborn](https://forum.litium.com/u/adam.clettborn)\
**Post date:** [March 8, 2023, 10:12am UTC](https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856/7 "2023-03-08T10:12:41Z")

</div>

Have you found a solution to this problem? We are experiencing the same exact error.

---

<div class="post-metadata">

**Author:** ![Martin.Brandt](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/martin.brandt/32/974_2.png) [@Martin.Brandt](https://forum.litium.com/u/Martin.Brandt)\
**Post date:** [March 10, 2023, 10:39am UTC](https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856/8 "2023-03-10T10:39:02Z")

</div>

I am also having similar issues at the moment… same message… don’t understand why… its only direct payment inline…

All my problems seem to be related to multiple channels on same domain. Our checkout is quite… customized. I’ve added code that resets the channel and resets the payments on checkout page load, and it seems to solve my issues. There is always only one payment method available so resetting to the only one available seems to solve it.

---

<div class="post-metadata">

**Author:** ![adam.clettborn](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/adam.clettborn/32/956_2.png) [@adam.clettborn](https://forum.litium.com/u/adam.clettborn)\
**Post date:** [March 13, 2023, 11:23am UTC](https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856/9 "2023-03-13T11:23:12Z")

</div>

Thanks, will try that.

We only have one channel, but multiple domains for that channel, that redirects to the main domain. Sometimes OrderPaymentLinks **aren’t** empty or null, and we still get this message. It always works after refreshing the page.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [April 10, 2023, 11:23am UTC](https://forum.litium.com/t/cart-validation-error-the-selected-payment-method-is-no-longer-supported-please-review-your-order/2856/10 "2023-04-10T11:23:45Z")

</div>

Closed on April 10, 2023, 11:23am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
