Paypal wrong redirect after successful payment
Hey Guys i am using Vue Storefront with the PWA Shopware solution.
But after checkout with PayPal I get redirected to the root domain of the shopware sever itsefl and not to the hostet PWA Storefront Domain.
I have a few suggestions already but wasnt able to fix it.
One hint could be that my front end https://home-5013243924.app-ionos.space/ still gives me a domain error:" …[Error][Shopware PWA] There is no domain configuration for "home-5013243924.app-ionos.space" - add this host to config and run domains configuration."
My thought is because shopware backend is not sycned to this domain its not passing it to paypal as the end screen domain and uses the default instead.
But i was not able fix this. I added a picture of the Domain settings in my shopware backend.
And this is my front end domain config:
module.exports = {
shopwareEndpoint: 'https://s23511.creoline.cloud',
shopwareAccessToken: "xxxxxxxxxx",
pwaHost:"https://home-5013243924.app-ionos.space",
shopwareDomainsAllowList: [
'https://home-5013243924.app-ionos.space'
],
defaultLanguageCode: "de-DE",
};
My production CLI build process is this:
npm install --global yarn
npx @shopware-pwa/cli init --ci --name --passwort
yarn build
yarn generate
Maybe i also need to add npx @shopware-pwa/cli domains to the process?
Or can I pass the finish URL within the handlePayment composable?
Maybe someone had a similar problem and is able to help?
Thanks already!
![No description](https://cdn.answeroverflow.com/1123164790257365082/Bildschirmfoto_2023-06-27_um_11.08.35.png)
0 Replies