To support Apple Pay on your site, you must upload a merchant identity certificate, which involves the following steps:
Create the Apple Pay Merchant Identity Certificate, as described on this page:
https://developer.apple.com/reference/applepayjs/
The name of the file is:
apple-developer-merchantid-domain-association
Use the
createFolder
endpoint to create a subfolder of/thirdparty
named/.well-known
.Use the
startFileUpload
endpoint to generate a token for uploading the file to the/thirdparty/.well-known
folder.Use the
doFileSegmentUpload
endpoint to upload the file.Publish your changes to the production environment.
View the file in your browser to verify that it was uploaded correctly. For example, if your site is
www.example.com
, the URL for the file is:https://www.example.com/.well-known/apple-developer-merchantid-domain-association