Commerce error after upgrade 17.1.12

Where getting errors from all online payments (opayo) after our upgrade.

Error processing Umbraco Commerce callback using OpayoServerPaymentProvider for order

All the lines:

Product xxxx (variant xxxx ) on order line 'xxxxxx' could no longer be resolved. Remove the line or restore the product before finalizing the order.

Hi @seanrockster

There is a 17.2.0 for Umbraco Commerce, are you able to update and see if the problem still occurs?

If so, I would recommend you raise it on the Umbraco Commerce issue tracker as it is a commercial and supported product.

I can’t see any versions of the Opayo payment provider for 17 apart from 17.0.0 so there’s nothing new there to try.

Justin

@justin-nevitech

We can but we’ve figured out the problem, it was ValidateProductResolvableOnOrderFinalize handler. We removed the handler from the pipeline and its works as normal.

Hi @seanrockster

Is that one of your own handlers or a built-in one?

Justin

Its a commerce handler.

The problem is that it calls our product adaptor but our adaptor does not return priced product data for unauthenticated users (because all our prices are account specific) and when the user is returned from the payment gateway they are appearing as unauthenticated during that stage. So it was failing the validation and failing the online orders.

edit: not when the user is returned to the site but the payment gateway posts back to the site immediately before authorizing payment - the failure/error is displayed in opayo and logged in umbraco.

I see, as long as that solution works for you and does not cause any unwanted side-effects!