Apple Pay Using Web Registration
Web Merchant Registration is an exciting feature here at Moyasar, it allows you to accept Apple Pay payments without the need to for an Apple Developer account.
Please note if you are developing a Mobile app you need to follow the Setup Apple Pay using Developer Account instead.
- Go to dashboard.moyasar.com
- Click on settings
- Click on Apple Pay domains
In order to use Apple Pay within your website, you first need to register your domain in Apple Pay settings in your Moyasar Dashboard.
Please make sure to register all possible domains that you are using, for example:
The two domains are considered different hosts and need to be registered if you are planning on using them interchangeably.
Once you have added your domain, download the Merchant Association File.
Please note that the association file does not have a file extension apple-developer-merchantid-domain-association.
Using your favorite tool, upload the association file on your server on the following path:
https://example.com/.well-known/apple-developer-merchantid-domain-association, assuming your website is example.com.
After you have uploaded the file, visit the link using your browser. It should show like the figure below or start downloading!
After uploading the association file, you need to validate your domain name by clicking Validate.
This step will allow Moyasar to validate the existence of the file before contacting Apple servers.
IF THE PREVIOUS STEP IS NOT FINISHED, THE VALIDATION STEP WILL NOT SUCCEED.
After validating your domain name, it is now time to register it with Apple, just hit Register.
If you are using Moyasar Form you can skip this step and include the Moyasar validation endpoint directly in the validate_merchant_url configuration parameter. Learn more here.
If you are implementing Apple Pay manually you can use our API endpoint to provide merchant validation for your website in the onvalidatemerchant event.
If you need to check availability, you can use merchant.com.moyasar as the merchant ID.
This means that you haven't uploaded the domain association file to the correct path