Quote:
Originally Posted by ambal
|
Install it, it broke the store. Now client is getting "Unable to process payment because cart content has changed. Try to restart checkout."
Their subscription X-Payments has been upgraded to latest as far as I know. So something is amiss there with the connector.
EDIT: It seems the issue was in using AC OPC - looks like the new X-Payments and Connector changes break this checkout, the cart takes orders with the built-in OPC.
And found this by accident which is included in the upgrade
PHP Code:
+ // Current API version is not supported, try to downgrade it
+ $_version_array = explode('.', $config['XPayments_Connector']['xpc_api_version']);
+ if ($_version_array[1] > 0) {
+ $_version_array[1]--;
+ } else {
+ $_version_array[1] = 9;
+ $_version_array[0]--;
+ }
+ $config['XPayments_Connector']['xpc_api_version'] = implode('.', $_version_array);
The "else" portion will never run, why is there like this?