Skip to content

Dev Apple Pay

boxblinkracer edited this page Sep 16, 2021 · 1 revision

Apple Pay Direct locally

It's possible to develop with Apple Pay Direct locally.

The main problem with that payment method is, that Apple needs to verify your domain while the checkout is in process. This verification requires a file which is automatically downloaded by the Mollie plugin into a "/.well-known" folder in your DocRoot. That file needs to be accessed by Apple.

If you have read the instructions about NGROK in the Webhooks developer guide, you might already be familiar with NGROK.

For Apple Pay Direct it's not enough to simply modify our webhook domains. Instead we have to move our complete shop domain to the public domain from NGROK.

Thus, please start NGROK without any header rewrites:

./ngrok http 443

You can now access your local environment with the generated NGROK url.

The next thing is, we need to configure your local Shopware Sales Channel to use this domain. Open the Administration or database and just change the domain of your preferred Sales Channel. Please run this MySQL command or modify the shop settings directly in the Shopware backend.

After clearing your cache, your Shopware shop should be fully available using the generated NGROK domain.

The rest of the configuration is just the basic setup of Apple Pay Direct and its requirements.

Apple Pay Direct, as well as webhooks should immediately work with your local setup.

Clone this wiki locally