In order to use the mobile payment service Apple Pay via the payment gateway Stripe in Woocommerceyou must contact us by ticket to have our experts modify the NGINX configuration of your WordPress site.
Activate Apple Pay with Stripe Gateway
If you have Woocommerce, you may already have Stripe installed.
If not, you can always install the Stripe payment gateway with the WooCommerce Stripe Payment Gateway.
First click on Extensions. Search for the plugin, then click on Install now.
Click on Activate.
Once Stripe is installed and active, go to Woocommerce then Setting. In the tab Paymentsin front of Stripeclick on the button Configure.
You must check the payment request box to fill in the LIVE public key and the LIVE secret key.
You do not need to activate the TEST mode to be able to validate the Apple Pay configuration in CURL.
Setting up Apple Pay on your Stripe account
To use the Apple Pay mobile payment service, it is mandatory to have a valid certificate hosted on your website. You must retrieve it via your Stripe dashboard, in Parameter then click on the link Apple Pay. Then follow the button Add a new domain then indicate the domain name.
Click on the button Download the verification file then Add.
Set up and validate the Apple Pay certificate
The validation is not a mandatory step. However, it ensures that the Apple Pay mobile payment service is functional on your website. That said, you must set up the certificate for the Apple Pay service to be functional. The procedure is indicated on the Stripe website at this link. Once you have retrieved the certificate entitled apple-developer-merchantid-domain-associationyou will have to place it in the root of the folder named .well-known via your FTP account.
The last step, which is not mandatory, is to validate that Apple Pay is working properly. To do this, you can do it in CURL with this command:
curl https://api.stripe.com/v1/apple_pay/domains -u " sk_live_***************** ": -d domain_name="example.com "
Replace the stars with your LIVE public key and example.com with your domain name.
If you have set up Apple Pay for your website correctly, you will receive this type of response.