The app could not be installed - again (DirectPay)

Me and a collegue spent like an entire day trying to get the apps to work properly my local dev machine. We always suspect that our company installed antivirus/firewall makes it really hard to get this to work. It seems to block alot of stuff. But since that day, I can get the apps to work every time on my local dev machine, this is the setup we have:

yaml file changes (works for me for direct pay, direct shipment and klarna):

  1. Removed/commented out the DNS-entry completely
  2. Changed LitiumApi__ApiUrl to use https://host.docker.internal:5001

host-file in Windows:

  1. Add entry for 127.0.0.1 host.docker.internal

To reinstall/install the apps when i need to i follow this order:

  1. Stop the apps in docker
  2. Clear direct-payment/config folder
  3. Clear direct-payment/DataProtection-key folder
  4. Log into backoffice, force-remove the apps i want to reinstall/install if they are installed already
  5. Start the apps in docker
  6. Visit each app metadata url (https://host.docker.internal:apport) which will rediret to http://host.docker.internal:5001 (the changed litiumapi_apiurl) where i log into backoffice and install the apps and load the configs
  7. Done. Now resume normal development/testning/whatever using the normal url to access Litium, project.localtest.me:5001 or whatever you’ve set up, and the apps work for me every time. Done it like 20 times or something now.
3 Likes