To finish your configuration, you will only need to complete the iCloud account and domain registration steps below.
iCloud account setup
When testing, you will need to be logged into an iCloud account that corresponds to your environment. Testing in sandbox requires you to be logged into an iTunes Connect sandbox tester account, which you can create with an Apple Developer account. Similarly, you will need to be logged into a production iCloud account when testing in production.
Specify an icon
When using Apple Pay on the web, users will be presented with your site's apple-touch-icon
, if present. It is recommended that you add an apple-touch-icon
to your website if you do not already have one. Consult Apple's guidelines on configuring web applications for more information.
Domain registration
In order to test and accept Apple Pay on the web, you'll need to register any domains you plan to use with Apple. You can do this through the Braintree Control Panel using the instructions below, or via the API using Apple Pay: Register Domain.
You should not register your domain through the Apple Developer Portal. Additionally, you will not need to generate and upload a Payment Processing Certificate for Apple Pay on the web, as these transactions will be processed using our shared certificate.
Sandbox environment
Register your sandbox domain name in the Braintree Control Panel:
- Log into your sandbox Control Panel
- Click on the gear icon in the top right corner
- Click Processing from the drop-down menu
- Scroll to the Payment Methods section
- Next to Apple Pay, click the Options link
- Scroll to the Web Domains (Safari) section
- Click the +Add link to the right
- Enter your fully qualified sandbox domain name
- The value you enter must match your fully qualified domain name exactly – including the
www.
if applicable
- The value you enter must match your fully qualified domain name exactly – including the
- Click the Agree & Add Domain button
Production environment
Register your production domain name in the Braintree Control Panel:
- Log into your production Control Panel
- Click on the gear icon in the top right corner
- Click Processing from the drop-down menu
- Scroll to the Payment Methods section
- Next to Apple Pay, click the Options link
- Scroll to the Web Domains (Safari) section
- Click the +Add link to the right
- Enter your fully qualified production domain name
- The value you enter must match your fully qualified domain name exactly – including the
www.
if applicable
- The value you enter must match your fully qualified domain name exactly – including the
- Download the domain association file and host it at
/.well-known/apple-developer-merchantid-domain-association
on your site - Click Agree & Add Domain