Last updated
These docs are intended for a developer audience.Dismiss

Apple Pay domain registration

This topic describes how to register a domain so that the Apple Pay button can be displayed in FramePay.

For the purposes of this tutorial, store.example.com is used as a placeholder. Replace this with your own domain.

  1. Depending on the environment you want to use, download one of the following Rebilly Apple Pay merchant domain verification files:
  2. Host the verification file at https://store.example.com/.well-known/apple-developer-merchantid-domain-association. Use this filename for both live and sandbox environments.
  3. Register the domain using the Register a domain for Apple Pay API operation, or check if it is already registered. Once the domain is registered, you can use Apple Pay with FramePay.

Example using live API endpoint:

curl --location --request POST 'https://api.rebilly.com/digital-wallets/onboarding/apple-pay' \
--header 'REB-APIKEY: {YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "domain":"store.example.com"
}'

Use a real Apple ID and card to test in the live or sandbox environment.

To test exclusively in the sandbox, create an Apple Pay sandbox tester account .