You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The "origin" parameter set by the web components is set in the root level not the additionalData level, so in most cases this value is ignored. Especially, as CheckoutStateDataValidator removes origin from the default data as well.
For headless implementations where the product URL might not be set, it would be nice if the correct origin is used.
Might even be something that should be changed in the php-api-library, so that CheckoutStateDataValidator does not remove origin, but then the check would still be wrong as you would need to check if it is set in $request.
candemiralp
changed the title
"origin" is used from "additionalData" instead of the root property.
[ECP-8840] "origin" is used from "additionalData" instead of the root property.
Dec 22, 2023
Describe the bug
The "origin" parameter set by the web components is set in the root level not the additionalData level, so in most cases this value is ignored. Especially, as CheckoutStateDataValidator removes origin from the default data as well.
For headless implementations where the product URL might not be set, it would be nice if the correct origin is used.
Might even be something that should be changed in the php-api-library, so that CheckoutStateDataValidator does not remove origin, but then the check would still be wrong as you would need to check if it is set in $request.
Versions
Shopware version: 6.5.3.3
Plugin version: 3.12.1
The text was updated successfully, but these errors were encountered: