-
Notifications
You must be signed in to change notification settings - Fork 17
Dev Apple Pay
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 shop to use this domain. Please run this MySQL command or modify the shop settings directly in the Shopware backend.
UPDATE s_core_shops SET host='123456789.ngrok.io', hosts='123456789.ngrok.io', secure = 1;
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.
German Support: [email protected] | International Support: [email protected]